diff options
author | Carl Dong <contact@carldong.me> | 2020-10-06 17:35:11 -0400 |
---|---|---|
committer | Carl Dong <contact@carldong.me> | 2021-06-10 15:05:25 -0400 |
commit | 6f994882deafe62e97f0a889d8bdb8c96dcf913d (patch) | |
tree | b7146c5915735a43da76340c665928441137bd49 /src/validation.h | |
parent | 972c5166ee685447a6d4bf5e501b07a0871fba85 (diff) |
validation: Farewell, global Chainstate!
Diffstat (limited to 'src/validation.h')
-rw-r--r-- | src/validation.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/validation.h b/src/validation.h index a3ead9443e..5720ba8071 100644 --- a/src/validation.h +++ b/src/validation.h @@ -891,10 +891,6 @@ private: CAutoFile& coins_file, const SnapshotMetadata& metadata); - // For access to m_active_chainstate. - friend CChainState& ChainstateActive(); - friend CChain& ChainActive(); - public: std::thread m_load_block; //! A single BlockManager instance is shared across each constructed @@ -1025,15 +1021,6 @@ public: } }; -/** DEPRECATED! Please use node.chainman instead. May only be used in validation.cpp internally */ -extern ChainstateManager g_chainman GUARDED_BY(::cs_main); - -/** Please prefer the identical ChainstateManager::ActiveChainstate */ -CChainState& ChainstateActive(); - -/** Please prefer the identical ChainstateManager::ActiveChain */ -CChain& ChainActive(); - /** Global variable that points to the active block tree (protected by cs_main) */ extern std::unique_ptr<CBlockTreeDB> pblocktree; |