mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-24 22:45:41 +01:00
Merge bitcoin/bitcoin#22047: index, rpc: Coinstatsindex follow-ups
779e638ca9coinstats: Add comments for new coinstatsindex values (Fabian Jahr)5b3d4e724fIndex: Improve logging in coinstatsindex (Fabian Jahr)d4356d4e48rpc: Block until synced if coinstatsindex is used in gettxoutsetinfo (Fabian Jahr)a5f6791139rpc: Add missing gettxoutsetinfo help docs (Fabian Jahr)01386bfd88Index: Return early from failed coinstatsindex init (Fabian Jahr)1e3842385bindex: Use batch writing in coinstatsindex WriteBlock (Fabian Jahr)fb65dde147scripted-diff: Fix coinstats data member names (Fabian Jahr)8ea8c927acindex: Avoid unnecessary type casts in coinstatsindex (Fabian Jahr) Pull request description: This is a collection of smaller follow-ups to #19521, addressing several post-merge review comments. ACKs for top commit: Sjors: re-utACK779e638ca9jonatack: re-ACK779e638ca9diff since last review involves doc changes only; rebased to current master and verified clean debug build/no silent conflicts, unit tests, and feature_coinstatsindex functional test laanwj: Code review ACK779e638ca9Talkless: re-utACK779e638ca9after cosmetic changes. Tree-SHA512: cb0d038d230c582d7fe3041c89b1e04d39971fab3739d540c609cf826754c6c513b12ded08ac92180aec7a9d7a70114ece50357bd1a902de4adaae9f30b8d699
This commit is contained in:
@@ -45,15 +45,25 @@ struct CCoinsStats
|
||||
bool index_used{false};
|
||||
|
||||
// Following values are only available from coinstats index
|
||||
|
||||
//! Total cumulative amount of block subsidies up to and including this block
|
||||
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};
|
||||
//! Total cumulative amount of unspendable coins up to and including this block
|
||||
CAmount total_unspendable_amount{0};
|
||||
//! Total cumulative amount of prevouts spent up to and including this block
|
||||
CAmount total_prevout_spent_amount{0};
|
||||
//! Total cumulative amount of outputs created up to and including this block
|
||||
CAmount total_new_outputs_ex_coinbase_amount{0};
|
||||
//! Total cumulative amount of coinbase outputs up to and including this block
|
||||
CAmount total_coinbase_amount{0};
|
||||
//! The unspendable coinbase amount from the genesis block
|
||||
CAmount total_unspendables_genesis_block{0};
|
||||
//! The two unspendable coinbase outputs total amount caused by BIP30
|
||||
CAmount total_unspendables_bip30{0};
|
||||
//! Total cumulative amount of outputs sent to unspendable scripts (OP_RETURN for example) up to and including this block
|
||||
CAmount total_unspendables_scripts{0};
|
||||
//! Total cumulative amount of coins lost due to unclaimed miner rewards up to and including this block
|
||||
CAmount total_unspendables_unclaimed_rewards{0};
|
||||
|
||||
CCoinsStats(CoinStatsHashType hash_type) : m_hash_type(hash_type) {}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user