Database-independent metric indicating the UTXO set size
| 20 | namespace node { |
| 21 | // Database-independent metric indicating the UTXO set size |
| 22 | uint64_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 | |
| 32 | CDataStream TxOutSer(const COutPoint& outpoint, const Coin& coin) { |
| 33 | CDataStream ss(SER_DISK, PROTOCOL_VERSION); |
no test coverage detected