diff options
author | MacroFake <falke.marco@gmail.com> | 2022-05-26 17:06:07 +0200 |
---|---|---|
committer | MacroFake <falke.marco@gmail.com> | 2022-07-20 07:59:53 +0200 |
commit | faa3d38ec6f2999740486c6c66cd062e74c769fb (patch) | |
tree | 2e64ae9bd4df10bbd90b13709b04f5f26271b59c /src/index/coinstatsindex.h | |
parent | 0897b189e4242321cd03339e7dde5c4d963d0e48 (diff) | |
download | bitcoin-faa3d38ec6f2999740486c6c66cd062e74c769fb.tar.xz |
refactor: Pass reference to LookUpStats
Diffstat (limited to 'src/index/coinstatsindex.h')
-rw-r--r-- | src/index/coinstatsindex.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/index/coinstatsindex.h b/src/index/coinstatsindex.h index c4af223388..7375a85750 100644 --- a/src/index/coinstatsindex.h +++ b/src/index/coinstatsindex.h @@ -5,11 +5,14 @@ #ifndef BITCOIN_INDEX_COINSTATSINDEX_H #define BITCOIN_INDEX_COINSTATSINDEX_H -#include <chain.h> #include <crypto/muhash.h> -#include <flatfile.h> #include <index/base.h> -#include <kernel/coinstats.h> + +class CBlockIndex; +class CDBBatch; +namespace kernel { +struct CCoinsStats; +} /** * CoinStatsIndex maintains statistics on the UTXO set. @@ -56,7 +59,7 @@ public: explicit CoinStatsIndex(std::unique_ptr<interfaces::Chain> chain, size_t n_cache_size, bool f_memory = false, bool f_wipe = false); // Look up stats for a specific block using CBlockIndex - std::optional<kernel::CCoinsStats> LookUpStats(const CBlockIndex* block_index) const; + std::optional<kernel::CCoinsStats> LookUpStats(const CBlockIndex& block_index) const; }; /// The global UTXO set hash object. |