mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 14:38:29 +01:00
validation: Farewell, global Chainstate!
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user