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

Function TxOutSer

src/node/coinstats.cpp:32–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32CDataStream TxOutSer(const COutPoint& outpoint, const Coin& coin) {
33 CDataStream ss(SER_DISK, PROTOCOL_VERSION);
34 ss << outpoint;
35 ss << static_cast<uint32_t>(coin.nHeight * 2 + coin.fCoinBase);
36 ss << coin.out;
37 return ss;
38}
39
40//! Warning: be very careful when changing this! assumeutxo and UTXO snapshot
41//! validation commitments are reliant on the hash constructed by this

Callers 3

WriteBlockMethod · 0.85
ReverseBlockMethod · 0.85
ApplyHashFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected