You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do not use the redundant BestInvalidWork record in the block database.
As block index entries have a flag for marking invalid blocks, the
'best invalid work' information can be derived from there. In addition,
remove the global from main.h
Copy file name to clipboardExpand all lines: src/main.cpp
+12-14Lines changed: 12 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@ unsigned int nTransactionsUpdated = 0;
33
33
34
34
map<uint256, CBlockIndex*> mapBlockIndex;
35
35
CChain chainActive;
36
-
uint256 nBestInvalidWork = 0;
36
+
CBlockIndex *pindexBestInvalid;
37
37
set<CBlockIndex*, CBlockIndexWorkComparator> setBlockIndexValid; // may contain all CBlockIndex*'s that have validness >=BLOCK_VALID_TRANSACTIONS, and must contain those who aren't failed
0 commit comments