MCPcopy Create free account
hub / github.com/LUX-Core/lux / GetWitnessHash

Method GetWitnessHash

src/primitives/transaction.cpp:112–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112uint256 CTransaction::GetWitnessHash() const
113{
114 if (!HasWitness()) {
115 return GetHash();
116 }
117 return SerializeHash(*this, SER_GETHASH, 0);
118}
119
120CTransaction::CTransaction() : hash(0), wit(CTxWitness()), vin(), vout(), nVersion(CTransaction::CURRENT_VERSION), nTime(0), nLockTime(0) { }
121CTransaction::CTransaction(const CMutableTransaction &tx) : wit(tx.wit), vin(tx.vin), vout(tx.vout), nVersion(tx.nVersion), nTime(tx.nTime), nLockTime(tx.nLockTime) {

Callers 6

getrawmempoolFunction · 0.80
addUncheckedMethod · 0.80
getblocktemplateFunction · 0.80
TxToJSONFunction · 0.80
TxToStringFunction · 0.80
BlockWitnessMerkleRootFunction · 0.80

Calls 1

SerializeHashFunction · 0.85

Tested by

no test coverage detected