| 30 | } |
| 31 | |
| 32 | CDataStream TxOutSer(const COutPoint& outpoint, const Coin& coin) { |
| 33 | CDataStream ss(SER_DISK, PROTOCOL_VERSION); |
| 34 | ss << outpoint; |
| 35 | ss << static_cast<uint32_t>(coin.nHeight * 2 + coin.fCoinBase); |
| 36 | ss << coin.out; |
| 37 | return ss; |
| 38 | } |
| 39 | |
| 40 | //! Warning: be very careful when changing this! assumeutxo and UTXO snapshot |
| 41 | //! validation commitments are reliant on the hash constructed by this |
no outgoing calls
no test coverage detected