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

Function GetBogoSize

src/node/coinstats.cpp:22–30  ·  view source on GitHub ↗

Database-independent metric indicating the UTXO set size

Source from the content-addressed store, hash-verified

20namespace node {
21// Database-independent metric indicating the UTXO set size
22uint64_t GetBogoSize(const CScript& script_pub_key)
23{
24 return 32 /* txid */ +
25 4 /* vout index */ +
26 4 /* height + coinbase */ +
27 8 /* amount */ +
28 2 /* scriptPubKey len */ +
29 script_pub_key.size() /* scriptPubKey */;
30}
31
32CDataStream TxOutSer(const COutPoint& outpoint, const Coin& coin) {
33 CDataStream ss(SER_DISK, PROTOCOL_VERSION);

Callers 3

WriteBlockMethod · 0.85
ReverseBlockMethod · 0.85
ApplyStatsFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected