aboutsummaryrefslogtreecommitdiff
path: root/src/node/chainstate.h
diff options
context:
space:
mode:
authorCarl Dong <contact@carldong.me>2021-09-20 14:02:07 -0400
committerCarl Dong <contact@carldong.me>2021-12-07 14:48:49 -0500
commit15f2e33bb3d1ad3bc997f6a84956337f46495091 (patch)
treef645b983981d41f2da59acd1e6c0f11c3e5a9830 /src/node/chainstate.h
parent4da9c076d1cf12728730bb1f7e8906d4e9bfaba5 (diff)
downloadbitcoin-15f2e33bb3d1ad3bc997f6a84956337f46495091.tar.xz
validation: VerifyDB only needs Consensus::Params
Previously we were passing in CChainParams, when VerifyDB only needed the Consensus::Params subset.
Diffstat (limited to 'src/node/chainstate.h')
-rw-r--r--src/node/chainstate.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/node/chainstate.h b/src/node/chainstate.h
index 735906a540..e3369eb47c 100644
--- a/src/node/chainstate.h
+++ b/src/node/chainstate.h
@@ -9,8 +9,10 @@
#include <functional> // for std::function
#include <optional> // for std::optional
-class CChainParams;
class ChainstateManager;
+namespace Consensus {
+ struct Params;
+}
class CTxMemPool;
enum class ChainstateLoadingError {
@@ -56,7 +58,7 @@ std::optional<ChainstateLoadingError> LoadChainstate(bool fReset,
ChainstateManager& chainman,
CTxMemPool* mempool,
bool fPruneMode,
- const CChainParams& chainparams,
+ const Consensus::Params& consensus_params,
bool fReindexChainState,
int64_t nBlockTreeDBCache,
int64_t nCoinDBCache,
@@ -73,7 +75,7 @@ enum class ChainstateLoadVerifyError {
std::optional<ChainstateLoadVerifyError> VerifyLoadedChainstate(ChainstateManager& chainman,
bool fReset,
bool fReindexChainState,
- const CChainParams& chainparams,
+ const Consensus::Params& consensus_params,
unsigned int check_blocks,
unsigned int check_level,
std::function<int64_t()> get_unix_time_seconds);