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.cpp | |
parent | 972c5166ee685447a6d4bf5e501b07a0871fba85 (diff) | |
download | bitcoin-6f994882deafe62e97f0a889d8bdb8c96dcf913d.tar.xz |
validation: Farewell, global Chainstate!
Diffstat (limited to 'src/validation.cpp')
-rw-r--r-- | src/validation.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/validation.cpp b/src/validation.cpp index 8f2283e673..21785ba208 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -101,21 +101,6 @@ bool CBlockIndexWorkComparator::operator()(const CBlockIndex *pa, const CBlockIn return false; } -ChainstateManager g_chainman; - -CChainState& ChainstateActive() -{ - LOCK(::cs_main); - assert(g_chainman.m_active_chainstate); - return *g_chainman.m_active_chainstate; -} - -CChain& ChainActive() -{ - LOCK(::cs_main); - return ::ChainstateActive().m_chain; -} - /** * Mutex to guard access to validation specific variables, such as reading * or changing the chainstate. |