aboutsummaryrefslogtreecommitdiff
path: root/src/validation.h
diff options
context:
space:
mode:
authorCarl Dong <contact@carldong.me>2020-09-02 16:05:54 -0400
committerCarl Dong <contact@carldong.me>2021-01-28 14:15:26 -0500
commit0e17c833cda67cdba5338bd7409061772b6d5edb (patch)
tree652cc3c418043d00b816b565b3d1ba2ebacd5373 /src/validation.h
parentd363d06bf7d6c3736140672ba8a7f82f4d6fb6ab (diff)
downloadbitcoin-0e17c833cda67cdba5338bd7409061772b6d5edb.tar.xz
validation: Make CChainState.m_blockman public
Diffstat (limited to 'src/validation.h')
-rw-r--r--src/validation.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/validation.h b/src/validation.h
index d39c02f795..ad5cbe019e 100644
--- a/src/validation.h
+++ b/src/validation.h
@@ -536,11 +536,6 @@ protected:
*/
mutable std::atomic<bool> m_cached_finished_ibd{false};
- //! Reference to a BlockManager instance which itself is shared across all
- //! CChainState instances. Keeping a local reference allows us to test more
- //! easily as opposed to referencing a global.
- BlockManager& m_blockman;
-
//! mempool that is kept in sync with the chain
CTxMemPool& m_mempool;
@@ -548,6 +543,10 @@ protected:
std::unique_ptr<CoinsViews> m_coins_views;
public:
+ //! Reference to a BlockManager instance which itself is shared across all
+ //! CChainState instances.
+ BlockManager& m_blockman;
+
explicit CChainState(CTxMemPool& mempool, BlockManager& blockman, uint256 from_snapshot_blockhash = uint256());
/**