Skip to content

Commit 779e638

Browse files
committed
coinstats: Add comments for new coinstatsindex values
1 parent 5b3d4e7 commit 779e638

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/node/coinstats.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,24 @@ struct CCoinsStats
4545
bool index_used{false};
4646

4747
// Following values are only available from coinstats index
48+
49+
//! Total cumulative amount of block subsidies up to and including this block
4850
CAmount total_subsidy{0};
51+
//! Total cumulative amount of unspendable coins up to and including this block
4952
CAmount total_unspendable_amount{0};
53+
//! Total cumulative amount of prevouts spent up to and including this block
5054
CAmount total_prevout_spent_amount{0};
55+
//! Total cumulative amount of outputs created up to and including this block
5156
CAmount total_new_outputs_ex_coinbase_amount{0};
57+
//! Total cumulative amount of coinbase outputs up to and including this block
5258
CAmount total_coinbase_amount{0};
59+
//! The unspendable coinbase amount from the genesis block
5360
CAmount total_unspendables_genesis_block{0};
61+
//! The two unspendable coinbase outputs total amount caused by BIP30
5462
CAmount total_unspendables_bip30{0};
63+
//! Total cumulative amount of outputs sent to unspendable scripts (OP_RETURN for example) up to and including this block
5564
CAmount total_unspendables_scripts{0};
65+
//! Total cumulative amount of coins lost due to unclaimed miner rewards up to and including this block
5666
CAmount total_unspendables_unclaimed_rewards{0};
5767

5868
CCoinsStats(CoinStatsHashType hash_type) : m_hash_type(hash_type) {}

0 commit comments

Comments
 (0)