Changeset View
Changeset View
Standalone View
Standalone View
src/script/interpreter.cpp
Show First 20 Lines • Show All 1,565 Lines • ▼ Show 20 Lines | if (sigHashType.hasForkId() && (flags & SCRIPT_ENABLE_SIGHASH_FORKID)) { | ||||
// Input prevouts/nSequence (none/all, depending on flags) | // Input prevouts/nSequence (none/all, depending on flags) | ||||
ss << hashPrevouts; | ss << hashPrevouts; | ||||
ss << hashSequence; | ss << hashSequence; | ||||
// The input being signed (replacing the scriptSig with scriptCode + | // The input being signed (replacing the scriptSig with scriptCode + | ||||
// amount). The prevout may already be contained in hashPrevout, and the | // amount). The prevout may already be contained in hashPrevout, and the | ||||
// nSequence may already be contain in hashSequence. | // nSequence may already be contain in hashSequence. | ||||
ss << txTo.vin[nIn].prevout; | ss << txTo.vin[nIn].prevout; | ||||
ss << scriptCode; | ss << scriptCode; | ||||
ss << amount.GetSatoshis(); | ss << amount; | ||||
ss << txTo.vin[nIn].nSequence; | ss << txTo.vin[nIn].nSequence; | ||||
// Outputs (none/one/all, depending on flags) | // Outputs (none/one/all, depending on flags) | ||||
ss << hashOutputs; | ss << hashOutputs; | ||||
// Locktime | // Locktime | ||||
ss << txTo.nLockTime; | ss << txTo.nLockTime; | ||||
// Sighash type | // Sighash type | ||||
ss << sigHashType; | ss << sigHashType; | ||||
▲ Show 20 Lines • Show All 227 Lines • Show Last 20 Lines |