Skip to content

Commit 486c1ee

Browse files
committed
refactoring: remove unused chainActive
1 parent 631940a commit 486c1ee

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

src/validation.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,6 @@ CChain& ChainActive() { return g_chainstate.m_chain; }
235235
RecursiveMutex cs_main;
236236

237237
BlockMap& mapBlockIndex = g_chainstate.mapBlockIndex;
238-
CChain& chainActive = g_chainstate.m_chain;
239238
CBlockIndex *pindexBestHeader = nullptr;
240239
Mutex g_best_block_mutex;
241240
std::condition_variable g_best_block_cv;

src/validation.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -435,9 +435,6 @@ bool InvalidateBlock(CValidationState& state, const CChainParams& chainparams, C
435435
/** Remove invalidity status from a block and its descendants. */
436436
void ResetBlockFailureFlags(CBlockIndex* pindex) EXCLUSIVE_LOCKS_REQUIRED(cs_main);
437437

438-
/** The currently-connected chain of blocks (protected by cs_main). */
439-
extern CChain& chainActive;
440-
441438
/** @returns the most-work chain. */
442439
CChain& ChainActive();
443440

0 commit comments

Comments
 (0)