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