aboutsummaryrefslogtreecommitdiff
path: root/src/bitcoin-tx.cpp
diff options
context:
space:
mode:
authorJeff Garzik <[email protected]>2014-09-14 19:27:22 -0400
committerJeff Garzik <[email protected]>2014-09-14 19:27:22 -0400
commita0a8700bc84cf10d99d9d3699e7b0fdfc323cf1c (patch)
treeb80a2a7c31b8f6e1dd0ff6efbdadb1c8bd29ce53 /src/bitcoin-tx.cpp
parentMerge pull request #4881 (diff)
parentbitcoin-util-test: Test bitcoin-tx with null scriptPubKey (diff)
downloaddiscoin-a0a8700bc84cf10d99d9d3699e7b0fdfc323cf1c.tar.xz
discoin-a0a8700bc84cf10d99d9d3699e7b0fdfc323cf1c.zip
Merge pull request #4909
Diffstat (limited to 'src/bitcoin-tx.cpp')
-rw-r--r--src/bitcoin-tx.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/bitcoin-tx.cpp b/src/bitcoin-tx.cpp
index 91525b51c..70819ff2e 100644
--- a/src/bitcoin-tx.cpp
+++ b/src/bitcoin-tx.cpp
@@ -237,8 +237,7 @@ static void MutateTxAddOutScript(CMutableTransaction& tx, const string& strInput
// separate VALUE:SCRIPT in string
size_t pos = strInput.find(':');
if ((pos == string::npos) ||
- (pos == 0) ||
- (pos == (strInput.size() - 1)))
+ (pos == 0))
throw runtime_error("TX output missing separator");
// extract and validate VALUE