MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / PrecomputedTransactionData

Method PrecomputedTransactionData

src/script/interpreter.cpp:1250–1259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1248
1249template <class T>
1250PrecomputedTransactionData::PrecomputedTransactionData(const T& txTo)
1251{
1252 // Cache is calculated only for transactions with witness
1253 if (txTo.HasWitness()) {
1254 hashPrevouts = GetPrevoutHash(txTo);
1255 hashSequence = GetSequenceHash(txTo);
1256 hashOutputs = GetOutputsHash(txTo);
1257 ready = true;
1258 }
1259}
1260
1261// explicit instantiation
1262template PrecomputedTransactionData::PrecomputedTransactionData(const CTransaction& txTo);

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