|
|
|
@ -1330,10 +1330,7 @@ void UpdateCoins(const CTransaction& tx, CCoinsViewCache& inputs, int nHeight)
|
|
|
|
|
bool CScriptCheck::operator()() {
|
|
|
|
|
const CScript &scriptSig = ptxTo->vin[nIn].scriptSig;
|
|
|
|
|
const CScriptWitness *witness = &ptxTo->vin[nIn].scriptWitness;
|
|
|
|
|
if (!VerifyScript(scriptSig, scriptPubKey, witness, nFlags, CachingTransactionSignatureChecker(ptxTo, nIn, amount, cacheStore, *txdata), &error)) {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
return true;
|
|
|
|
|
return VerifyScript(scriptSig, scriptPubKey, witness, nFlags, CachingTransactionSignatureChecker(ptxTo, nIn, amount, cacheStore, *txdata), &error);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int GetSpendHeight(const CCoinsViewCache& inputs)
|
|
|
|
|