| 24 | { |
| 25 | template<typename Stream> |
| 26 | void Ser(Stream &s, const Coin& txout) { |
| 27 | ::Serialize(s, VARINT(txout.nHeight * uint32_t{2} + txout.fCoinBase )); |
| 28 | if (txout.nHeight > 0) { |
| 29 | // Required to maintain compatibility with older undo format. |
| 30 | ::Serialize(s, (unsigned char)0); |
| 31 | } |
| 32 | ::Serialize(s, Using<TxOutCompression>(txout.out)); |
| 33 | } |
| 34 | |
| 35 | template<typename Stream> |
| 36 | void Unser(Stream &s, Coin& txout) { |
nothing calls this directly
no test coverage detected