MCPcopy Create free account
hub / github.com/bitcoinxt/bitcoinxt / GetPrevoutHash

Function GetPrevoutHash

src/script/interpreter.cpp:1138–1144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1136};
1137
1138uint256 GetPrevoutHash(const CTransaction &txTo) {
1139 CHashWriter ss(SER_GETHASH, 0);
1140 for (unsigned int n = 0; n < txTo.vin.size(); n++) {
1141 ss << txTo.vin[n].prevout;
1142 }
1143 return ss.GetHash();
1144}
1145
1146uint256 GetSequenceHash(const CTransaction &txTo) {
1147 CHashWriter ss(SER_GETHASH, 0);

Callers 1

SignatureHashFunction · 0.85

Calls 2

sizeMethod · 0.45
GetHashMethod · 0.45

Tested by

no test coverage detected