diff options
| author | Luke Dashjr <[email protected]> | 2014-09-14 05:28:41 +0000 |
|---|---|---|
| committer | Luke Dashjr <[email protected]> | 2014-09-14 05:28:41 +0000 |
| commit | 15ef1b905b3b468a024b8d5b20c94d80d3c4296a (patch) | |
| tree | 9fd65e6c6abee854d59309c246bf00bbe8e81c81 /src/bitcoin-tx.cpp | |
| parent | Merge pull request #4896 (diff) | |
| download | discoin-15ef1b905b3b468a024b8d5b20c94d80d3c4296a.tar.xz discoin-15ef1b905b3b468a024b8d5b20c94d80d3c4296a.zip | |
Bugfix: bitcoin-tx: scriptPubKey may be null, so accept outscript=<n>:
Diffstat (limited to 'src/bitcoin-tx.cpp')
| -rw-r--r-- | src/bitcoin-tx.cpp | 3 |
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 |