Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13115097
D6968.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
974 B
Subscribers
None
D6968.diff
View Options
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
Details
Attached
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)
Attached To
D6968: [backport#16194] refactoring: make pindexBestInvalid internal to validation.cpp
Event Timeline
Log In to Comment