diff options
| author | Pieter Wuille <[email protected]> | 2016-03-31 14:51:29 +0200 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2016-06-22 15:43:00 +0200 |
| commit | 0ef1dd3e11dd573b6e443852ef0c72e34093ac68 (patch) | |
| tree | 5fb4e54e732902ea296636877f2cd81dfd4f4b29 /src/main.cpp | |
| parent | BIP144: Handshake and relay (receiver side) (diff) | |
| download | discoin-0ef1dd3e11dd573b6e443852ef0c72e34093ac68.tar.xz discoin-0ef1dd3e11dd573b6e443852ef0c72e34093ac68.zip | |
Refactor script validation to observe amounts
This is a preparation for BIP143 support.
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 73e4c8f51..c22faf6db 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1885,7 +1885,7 @@ void UpdateCoins(const CTransaction& tx, CCoinsViewCache& inputs, int nHeight) bool CScriptCheck::operator()() { const CScript &scriptSig = ptxTo->vin[nIn].scriptSig; const CScriptWitness *witness = (nIn < ptxTo->wit.vtxinwit.size()) ? &ptxTo->wit.vtxinwit[nIn].scriptWitness : NULL; - if (!VerifyScript(scriptSig, scriptPubKey, witness, nFlags, CachingTransactionSignatureChecker(ptxTo, nIn, cacheStore), &error)) { + if (!VerifyScript(scriptSig, scriptPubKey, witness, nFlags, CachingTransactionSignatureChecker(ptxTo, nIn, amount, cacheStore), &error)) { return false; } return true; |