Changeset View
Changeset View
Standalone View
Standalone View
src/script/interpreter.cpp
Show First 20 Lines • Show All 1,343 Lines • ▼ Show 20 Lines | |||||
PrecomputedTransactionData::PrecomputedTransactionData( | PrecomputedTransactionData::PrecomputedTransactionData( | ||||
const CTransaction &txTo) { | const CTransaction &txTo) { | ||||
hashPrevouts = GetPrevoutHash(txTo); | hashPrevouts = GetPrevoutHash(txTo); | ||||
hashSequence = GetSequenceHash(txTo); | hashSequence = GetSequenceHash(txTo); | ||||
hashOutputs = GetOutputsHash(txTo); | hashOutputs = GetOutputsHash(txTo); | ||||
} | } | ||||
uint256 SignatureHash(const CScript &scriptCode, const CTransaction &txTo, | uint256 SignatureHash(const CScript &scriptCode, const CTransaction &txTo, | ||||
unsigned int nIn, uint32_t nHashType, | unsigned int nIn, uint32_t nHashType, const Amount amount, | ||||
const Amount &amount, | |||||
const PrecomputedTransactionData *cache, uint32_t flags) { | const PrecomputedTransactionData *cache, uint32_t flags) { | ||||
if ((nHashType & SIGHASH_FORKID) && | if ((nHashType & SIGHASH_FORKID) && | ||||
(flags & SCRIPT_ENABLE_SIGHASH_FORKID)) { | (flags & SCRIPT_ENABLE_SIGHASH_FORKID)) { | ||||
uint256 hashPrevouts; | uint256 hashPrevouts; | ||||
uint256 hashSequence; | uint256 hashSequence; | ||||
uint256 hashOutputs; | uint256 hashOutputs; | ||||
if (!(nHashType & SIGHASH_ANYONECANPAY)) { | if (!(nHashType & SIGHASH_ANYONECANPAY)) { | ||||
▲ Show 20 Lines • Show All 267 Lines • Show Last 20 Lines |