diff options
author | MarcoFalke <falke.marco@gmail.com> | 2021-11-23 19:49:48 +0100 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2021-12-15 17:46:39 +0100 |
commit | fab6d6b2d154893ab422dda87f3535d42c3e06f4 (patch) | |
tree | bcf3841bfff98cdb318d25ee05c4e580b05045e2 /src/validation.h | |
parent | facd2137eceacb95e1f71c87ddc704d752b37272 (diff) | |
download | bitcoin-fab6d6b2d154893ab422dda87f3535d42c3e06f4.tar.xz |
Move pindexBestInvalid to ChainstateManager
A private member is better than a global.
Diffstat (limited to 'src/validation.h')
-rw-r--r-- | src/validation.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/validation.h b/src/validation.h index 3a702b4fa6..784ff0b3bc 100644 --- a/src/validation.h +++ b/src/validation.h @@ -866,6 +866,9 @@ private: //! by the background validation chainstate. bool m_snapshot_validated{false}; + CBlockIndex* m_best_invalid; + friend bool BlockManager::LoadBlockIndex(const Consensus::Params&, ChainstateManager&); + //! Internal helper for ActivateSnapshot(). [[nodiscard]] bool PopulateAndValidateSnapshot( CChainState& snapshot_chainstate, |