mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-18 03:20:24 +01:00
refactoring: make pindexBestInvalid internal to validation.cpp
There's no need to have this member live on CChainState since it's only used in validation.cpp.
This commit is contained in:
@@ -129,7 +129,7 @@ CScript COINBASE_FLAGS;
|
||||
|
||||
// Internal stuff
|
||||
namespace {
|
||||
CBlockIndex *&pindexBestInvalid = ::ChainstateActive().pindexBestInvalid;
|
||||
CBlockIndex* pindexBestInvalid = nullptr;
|
||||
|
||||
CCriticalSection cs_LastBlockFile;
|
||||
std::vector<CBlockFileInfo> vinfoBlockFile;
|
||||
|
||||
Reference in New Issue
Block a user