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

Function GetPrevoutHash

src/script/interpreter.cpp:1218–1225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1216
1217template <class T>
1218uint256 GetPrevoutHash(const T& txTo)
1219{
1220 CHashWriter ss(SER_GETHASH, 0);
1221 for (const auto& txin : txTo.vin) {
1222 ss << txin.prevout;
1223 }
1224 return ss.GetHash();
1225}
1226
1227template <class T>
1228uint256 GetSequenceHash(const T& txTo)

Callers 2

SignatureHashFunction · 0.85

Calls 1

GetHashMethod · 0.45

Tested by

no test coverage detected