index, rpc: Add use_index option for gettxoutsetinfo

This commit is contained in:
Fabian Jahr
2021-02-28 19:27:00 +01:00
parent bb7788b121
commit b9362392ae
5 changed files with 22 additions and 5 deletions

View File

@@ -39,7 +39,10 @@ struct CCoinsStats
//! The number of coins contained.
uint64_t coins_count{0};
bool from_index{false};
//! Signals if the coinstatsindex should be used (when available).
bool index_requested{true};
//! Signals if the coinstatsindex was used to retrieve the statistics.
bool index_used{false};
// Following values are only available from coinstats index
CAmount total_subsidy{0};