diff options
| author | Wladimir J. van der Laan <[email protected]> | 2015-02-03 08:15:51 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2015-02-03 08:26:08 +0100 |
| commit | f425050546644a36b0b8e0eb2f6934a3e0f6f80f (patch) | |
| tree | e5fbeb4aa5f3fcc6109911b61156e1b1adbcfff2 /src/script/bitcoinconsensus.cpp | |
| parent | Merge pull request #5731 (diff) | |
| parent | Avoid storing a reference passed to SignatureChecker constructors (diff) | |
| download | discoin-f425050546644a36b0b8e0eb2f6934a3e0f6f80f.tar.xz discoin-f425050546644a36b0b8e0eb2f6934a3e0f6f80f.zip | |
Merge pull request #5719
9fddced Avoid storing a reference passed to SignatureChecker constructors (Pieter Wuille)
858809a Use separate SignatureChecker for CMutableTransaction (Pieter Wuille)
Diffstat (limited to 'src/script/bitcoinconsensus.cpp')
| -rw-r--r-- | src/script/bitcoinconsensus.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/bitcoinconsensus.cpp b/src/script/bitcoinconsensus.cpp index c8dd54a74..b0d5faaf7 100644 --- a/src/script/bitcoinconsensus.cpp +++ b/src/script/bitcoinconsensus.cpp @@ -78,7 +78,7 @@ int bitcoinconsensus_verify_script(const unsigned char *scriptPubKey, unsigned i // Regardless of the verification result, the tx did not error. set_error(err, bitcoinconsensus_ERR_OK); - return VerifyScript(tx.vin[nIn].scriptSig, CScript(scriptPubKey, scriptPubKey + scriptPubKeyLen), flags, SignatureChecker(tx, nIn), NULL); + return VerifyScript(tx.vin[nIn].scriptSig, CScript(scriptPubKey, scriptPubKey + scriptPubKeyLen), flags, TransactionSignatureChecker(&tx, nIn), NULL); } catch (const std::exception&) { return set_error(err, bitcoinconsensus_ERR_TX_DESERIALIZE); // Error deserializing } |