MCPcopy Create free account
hub / github.com/ElementsProject/elements / ComputeWitnessHash

Method ComputeWitnessHash

src/primitives/transaction.cpp:86–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86uint256 CTransaction::ComputeWitnessHash() const
87{
88 if (!HasWitness()) {
89 return hash;
90 }
91 return SerializeHash(*this, SER_GETHASH, 0);
92}
93
94// ELEMENTS ONLY
95uint256 CTransaction::GetWitnessOnlyHash() const

Callers

nothing calls this directly

Calls 1

SerializeHashFunction · 0.85

Tested by

no test coverage detected