aboutsummaryrefslogtreecommitdiff
path: root/src/node/coinstats.h
diff options
context:
space:
mode:
authorFabian Jahr <fjahr@protonmail.com>2020-05-15 16:14:07 +0200
committerFabian Jahr <fjahr@protonmail.com>2021-04-19 20:30:59 +0200
commit3f166ecc125fce6ccd995687fa16572090a5d099 (patch)
tree0110f1a8cea9495fbe3be5f0467a4e2bf0083633 /src/node/coinstats.h
parent3c914d58ff323255b32e717d0ce28209ec0abdaa (diff)
downloadbitcoin-3f166ecc125fce6ccd995687fa16572090a5d099.tar.xz
rpc: gettxoutsetinfo can be requested for specific blockheights
Diffstat (limited to 'src/node/coinstats.h')
-rw-r--r--src/node/coinstats.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/node/coinstats.h b/src/node/coinstats.h
index 826df2fd73..e30b2778c5 100644
--- a/src/node/coinstats.h
+++ b/src/node/coinstats.h
@@ -39,11 +39,13 @@ struct CCoinsStats
//! The number of coins contained.
uint64_t coins_count{0};
+ bool from_index{false};
+
CCoinsStats(CoinStatsHashType hash_type) : m_hash_type(hash_type) {}
};
//! Calculate statistics about the unspent transaction output set
-bool GetUTXOStats(CCoinsView* view, BlockManager& blockman, CCoinsStats& stats, const std::function<void()>& interruption_point = {});
+bool GetUTXOStats(CCoinsView* view, BlockManager& blockman, CCoinsStats& stats, const std::function<void()>& interruption_point = {}, const CBlockIndex* pindex = nullptr);
uint64_t GetBogoSize(const CScript& script_pub_key);