mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-10 20:03:34 -03:00
refactoring: remove unused chainActive
This commit is contained in:
parent
631940aab2
commit
486c1eea86
2 changed files with 0 additions and 4 deletions
|
@ -235,7 +235,6 @@ CChain& ChainActive() { return g_chainstate.m_chain; }
|
||||||
RecursiveMutex cs_main;
|
RecursiveMutex cs_main;
|
||||||
|
|
||||||
BlockMap& mapBlockIndex = g_chainstate.mapBlockIndex;
|
BlockMap& mapBlockIndex = g_chainstate.mapBlockIndex;
|
||||||
CChain& chainActive = g_chainstate.m_chain;
|
|
||||||
CBlockIndex *pindexBestHeader = nullptr;
|
CBlockIndex *pindexBestHeader = nullptr;
|
||||||
Mutex g_best_block_mutex;
|
Mutex g_best_block_mutex;
|
||||||
std::condition_variable g_best_block_cv;
|
std::condition_variable g_best_block_cv;
|
||||||
|
|
|
@ -435,9 +435,6 @@ bool InvalidateBlock(CValidationState& state, const CChainParams& chainparams, C
|
||||||
/** Remove invalidity status from a block and its descendants. */
|
/** Remove invalidity status from a block and its descendants. */
|
||||||
void ResetBlockFailureFlags(CBlockIndex* pindex) EXCLUSIVE_LOCKS_REQUIRED(cs_main);
|
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. */
|
/** @returns the most-work chain. */
|
||||||
CChain& ChainActive();
|
CChain& ChainActive();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue