diff options
author | James O'Beirne <james.obeirne@gmail.com> | 2019-03-27 13:54:18 -0400 |
---|---|---|
committer | James O'Beirne <james.obeirne@gmail.com> | 2019-05-03 15:03:05 -0400 |
commit | 486c1eea863a41e597ae4fddc392f446f2518b4b (patch) | |
tree | 008b6d2dc7e51fe1b01341f2eabf75085d16f2b3 | |
parent | 631940aab228ccca64c15e05d5953f40381a0ffc (diff) |
refactoring: remove unused chainActive
-rw-r--r-- | src/validation.cpp | 1 | ||||
-rw-r--r-- | src/validation.h | 3 |
2 files changed, 0 insertions, 4 deletions
diff --git a/src/validation.cpp b/src/validation.cpp index ea4cfd52c5..e94574b7ba 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -235,7 +235,6 @@ CChain& ChainActive() { return g_chainstate.m_chain; } RecursiveMutex cs_main; BlockMap& mapBlockIndex = g_chainstate.mapBlockIndex; -CChain& chainActive = g_chainstate.m_chain; CBlockIndex *pindexBestHeader = nullptr; Mutex g_best_block_mutex; std::condition_variable g_best_block_cv; diff --git a/src/validation.h b/src/validation.h index e43573d51a..7efb11fc9f 100644 --- a/src/validation.h +++ b/src/validation.h @@ -435,9 +435,6 @@ bool InvalidateBlock(CValidationState& state, const CChainParams& chainparams, C /** Remove invalidity status from a block and its descendants. */ void ResetBlockFailureFlags(CBlockIndex* pindex) EXCLUSIVE_LOCKS_REQUIRED(cs_main); -/** The currently-connected chain of blocks (protected by cs_main). */ -extern CChain& chainActive; - /** @returns the most-work chain. */ CChain& ChainActive(); |