aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2015-01-27 10:01:31 -0400
committerPieter Wuille <pieter.wuille@gmail.com>2015-02-02 20:19:46 -0800
commit9fddceda44fb5592be179d783f0e5ac616c51c0d (patch)
treee5fbeb4aa5f3fcc6109911b61156e1b1adbcfff2 /src/main.cpp
parent858809a33e4f690c4ad213f44a6c4465fc2ef025 (diff)
Avoid storing a reference passed to SignatureChecker constructors
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 702358cf94..57b44baac5 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1422,7 +1422,7 @@ void UpdateCoins(const CTransaction& tx, CValidationState &state, CCoinsViewCach
bool CScriptCheck::operator()() {
const CScript &scriptSig = ptxTo->vin[nIn].scriptSig;
- if (!VerifyScript(scriptSig, scriptPubKey, nFlags, CachingTransactionSignatureChecker(*ptxTo, nIn, cacheStore), &error)) {
+ if (!VerifyScript(scriptSig, scriptPubKey, nFlags, CachingTransactionSignatureChecker(ptxTo, nIn, cacheStore), &error)) {
return ::error("CScriptCheck(): %s:%d VerifySignature failed: %s", ptxTo->GetHash().ToString(), nIn, ScriptErrorString(error));
}
return true;