MCPcopy Create free account
hub / github.com/ElementsProject/elements / Ser

Method Ser

src/undo.h:26–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls 1

SerializeFunction · 0.70

Tested by

no test coverage detected