diff options
| author | Pieter Wuille <[email protected]> | 2015-01-27 10:01:31 -0400 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2015-02-02 20:19:46 -0800 |
| commit | 9fddceda44fb5592be179d783f0e5ac616c51c0d (patch) | |
| tree | e5fbeb4aa5f3fcc6109911b61156e1b1adbcfff2 /src/bitcoin-tx.cpp | |
| parent | Use separate SignatureChecker for CMutableTransaction (diff) | |
| download | discoin-9fddceda44fb5592be179d783f0e5ac616c51c0d.tar.xz discoin-9fddceda44fb5592be179d783f0e5ac616c51c0d.zip | |
Avoid storing a reference passed to SignatureChecker constructors
Diffstat (limited to 'src/bitcoin-tx.cpp')
| -rw-r--r-- | src/bitcoin-tx.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bitcoin-tx.cpp b/src/bitcoin-tx.cpp index ff409d741..c1622cf5d 100644 --- a/src/bitcoin-tx.cpp +++ b/src/bitcoin-tx.cpp @@ -436,7 +436,7 @@ static void MutateTxSign(CMutableTransaction& tx, const string& flagStr) BOOST_FOREACH(const CTransaction& txv, txVariants) { txin.scriptSig = CombineSignatures(prevPubKey, mergedTx, i, txin.scriptSig, txv.vin[i].scriptSig); } - if (!VerifyScript(txin.scriptSig, prevPubKey, STANDARD_SCRIPT_VERIFY_FLAGS, MutableTransactionSignatureChecker(mergedTx, i))) + if (!VerifyScript(txin.scriptSig, prevPubKey, STANDARD_SCRIPT_VERIFY_FLAGS, MutableTransactionSignatureChecker(&mergedTx, i))) fComplete = false; } |