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

Method Unserialize

src/coins.h:68–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66
67 template<typename Stream>
68 void Unserialize(Stream &s) {
69 uint32_t code = 0;
70 ::Unserialize(s, VARINT(code));
71 nHeight = code >> 1;
72 fCoinBase = code & 1;
73 ::Unserialize(s, Using<TxOutCompression>(out));
74 }
75
76 /** Either this coin never existed (see e.g. coinEmpty in coins.cpp), or it
77 * did exist and has been spent.

Callers

nothing calls this directly

Calls 1

UnserializeFunction · 0.85

Tested by

no test coverage detected