uint256 CTransaction::ComputeWitnessHash() const { if (!HasWitness()) { return hash; } return SerializeHash(*this, SER_GETHASH, 0); }
uint256 CTransaction::GetWitnessHash() const { if (!HasWitness()) { return GetHash(); } return SerializeHash(*this, SER_GETHASH, 0); }