MCPcopy Create free account
hub / github.com/LUX-Core/lux / PrecomputedTransactionData

Method PrecomputedTransactionData

src/script/interpreter.cpp:1210–1219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1208} // anon namespace
1209
1210PrecomputedTransactionData::PrecomputedTransactionData(const CTransaction& txTo)
1211{
1212 // Cache is calculated only for transactions with witness
1213 if (txTo.HasWitness()) {
1214 hashPrevouts = GetPrevoutHash(txTo);
1215 hashSequence = GetSequenceHash(txTo);
1216 hashOutputs = GetOutputsHash(txTo);
1217 ready = true;
1218 }
1219}
1220
1221uint256 SignatureHash(const CScript& scriptCode, const CTransaction& txTo, unsigned int nIn, int nHashType, const CAmount& amount, SigVersion sigversion, const PrecomputedTransactionData* cache)
1222{

Callers

nothing calls this directly

Calls 4

GetPrevoutHashFunction · 0.85
GetSequenceHashFunction · 0.85
GetOutputsHashFunction · 0.85
HasWitnessMethod · 0.45

Tested by

no test coverage detected