diff options
author | Carl Dong <contact@carldong.me> | 2021-09-20 16:44:21 -0400 |
---|---|---|
committer | Carl Dong <contact@carldong.me> | 2021-12-06 15:56:55 -0500 |
commit | 9162a4f93ef5aeb57fe11a6e09f5881cf431f5e6 (patch) | |
tree | 1ef3829ddaadb842e7c20f921922ee336efb5141 /src/node/chainstate.h | |
parent | c7a5c46e6fd6d6ff46ca7a65fc3f0fff3cbdb24e (diff) | |
download | bitcoin-9162a4f93ef5aeb57fe11a6e09f5881cf431f5e6.tar.xz |
node/chainstate: Decouple from concept of NodeContext
...instead pass in only the necessary information
Also allow mempool to be a nullptr
Diffstat (limited to 'src/node/chainstate.h')
-rw-r--r-- | src/node/chainstate.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node/chainstate.h b/src/node/chainstate.h index 87aad23e27..39621a31c5 100644 --- a/src/node/chainstate.h +++ b/src/node/chainstate.h @@ -10,7 +10,7 @@ class CChainParams; class ChainstateManager; -struct NodeContext; +class CTxMemPool; enum class ChainstateLoadingError { ERROR_LOADING_BLOCK_DB, @@ -55,7 +55,7 @@ enum class ChainstateLoadingError { */ std::optional<ChainstateLoadingError> LoadChainstate(bool fReset, ChainstateManager& chainman, - NodeContext& node, + CTxMemPool* mempool, bool fPruneMode, const CChainParams& chainparams, bool fReindexChainState, |