MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / GetSequencesSHA256

Function GetSequencesSHA256

src/script/interpreter.cpp:1369–1376  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1367/** Compute the (single) SHA256 of the concatenation of all nSequences of a tx. */
1368template <class T>
1369uint256 GetSequencesSHA256(const T& txTo)
1370{
1371 HashWriter ss{};
1372 for (const auto& txin : txTo.vin) {
1373 ss << txin.nSequence;
1374 }
1375 return ss.GetSHA256();
1376}
1377
1378/** Compute the (single) SHA256 of the concatenation of all txouts of a tx. */
1379template <class T>

Callers 2

InitMethod · 0.85
SignatureHashFunction · 0.85

Calls 1

GetSHA256Method · 0.80

Tested by

no test coverage detected