Skip to content

Commit

Permalink
refactoring: remove unused chainActive
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesob committed May 3, 2019
1 parent 631940a commit 486c1ee
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/validation.cpp
Expand Up @@ -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;
Expand Down
3 changes: 0 additions & 3 deletions src/validation.h
Expand Up @@ -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();

Expand Down

0 comments on commit 486c1ee

Please sign in to comment.