aboutsummaryrefslogtreecommitdiff
path: root/src/node/coinstats.h
diff options
context:
space:
mode:
authorFabian Jahr <fjahr@protonmail.com>2020-08-22 20:21:20 +0200
committerFabian Jahr <fjahr@protonmail.com>2021-04-19 20:31:02 +0200
commit2501576eccb08af80471c7b7b843b189ad6758c0 (patch)
tree31891e04458f1c36128d3418ebc36e3ac5c9253a /src/node/coinstats.h
parent655d929836a71af23d2035d2e2e99ad8b8c340c3 (diff)
rpc, index: Add verbose amounts tracking to Coinstats index
Diffstat (limited to 'src/node/coinstats.h')
-rw-r--r--src/node/coinstats.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/node/coinstats.h b/src/node/coinstats.h
index e30b2778c5..ba565eba43 100644
--- a/src/node/coinstats.h
+++ b/src/node/coinstats.h
@@ -41,6 +41,17 @@ struct CCoinsStats
bool from_index{false};
+ // Following values are only available from coinstats index
+ CAmount total_subsidy{0};
+ CAmount block_unspendable_amount{0};
+ CAmount block_prevout_spent_amount{0};
+ CAmount block_new_outputs_ex_coinbase_amount{0};
+ CAmount block_coinbase_amount{0};
+ CAmount unspendables_genesis_block{0};
+ CAmount unspendables_bip30{0};
+ CAmount unspendables_scripts{0};
+ CAmount unspendables_unclaimed_rewards{0};
+
CCoinsStats(CoinStatsHashType hash_type) : m_hash_type(hash_type) {}
};