Page MenuHomePhabricator

D6968.diff
No OneTemporary

D6968.diff

diff --git a/src/validation.h b/src/validation.h
--- a/src/validation.h
+++ b/src/validation.h
@@ -815,8 +815,6 @@
//! The current chain of blockheaders we consult and build on.
//! @see CChain, CBlockIndex.
CChain m_chain;
- CBlockIndex *pindexBestInvalid = nullptr;
- CBlockIndex *pindexBestParked = nullptr;
CBlockIndex const *pindexFinalized = nullptr;
/**
* The set of all CBlockIndex entries with BLOCK_VALID_TRANSACTIONS (for
diff --git a/src/validation.cpp b/src/validation.cpp
--- a/src/validation.cpp
+++ b/src/validation.cpp
@@ -114,9 +114,8 @@
// Internal stuff
namespace {
-CBlockIndex *&pindexBestInvalid = ::ChainstateActive().pindexBestInvalid;
-CBlockIndex *&pindexBestParked = ::ChainstateActive().pindexBestParked;
-
+CBlockIndex *pindexBestInvalid = nullptr;
+CBlockIndex *pindexBestParked = nullptr;
/**
* The best finalized block.
* This block cannot be reorged in any way except by explicit user action.

File Metadata

Mime Type
text/plain
Expires
Sat, Mar 1, 09:45 (4 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5187239
Default Alt Text
D6968.diff (974 B)

Event Timeline