| 25 | public: |
| 26 | template<typename Stream> |
| 27 | void Serialize(Stream &s) const { |
| 28 | ::Serialize(s, VARINT(txout->nHeight * 2 + (txout->fCoinBase ? 1u : 0u))); |
| 29 | if (txout->nHeight > 0) { |
| 30 | // Required to maintain compatibility with older undo format. |
| 31 | ::Serialize(s, (unsigned char)0); |
| 32 | } |
| 33 | ::Serialize(s, CTxOutCompressor(REF(txout->out))); |
| 34 | } |
| 35 | |
| 36 | explicit TxInUndoSerializer(const Coin* coin) : txout(coin) {} |
| 37 | }; |
nothing calls this directly
no test coverage detected