MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / Serialize

Method Serialize

src/undo.h:27–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25public:
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};

Callers

nothing calls this directly

Calls 2

CTxOutCompressorClass · 0.85
SerializeFunction · 0.70

Tested by

no test coverage detected