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
caca6aa Make some globals in main non-public. (Pieter Wuille)
85eb2ce Do not use the redundant BestInvalidWork record in the block database. (Pieter Wuille)
Copy file name to clipboardExpand all lines: src/main.cpp
+32-19Lines changed: 32 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -33,8 +33,6 @@ unsigned int nTransactionsUpdated = 0;
33
33
34
34
map<uint256, CBlockIndex*> mapBlockIndex;
35
35
CChain chainActive;
36
-
uint256 nBestInvalidWork = 0;
37
-
set<CBlockIndex*, CBlockIndexWorkComparator> setBlockIndexValid; // may contain all CBlockIndex*'s that have validness >=BLOCK_VALID_TRANSACTIONS, and must contain those who aren't failed
if (pa->GetBlockHash() < pb->GetBlockHash()) returnfalse;
75
+
if (pa->GetBlockHash() > pb->GetBlockHash()) returntrue;
76
+
77
+
returnfalse; // identical blocks
78
+
}
79
+
};
80
+
81
+
CBlockIndex *pindexBestInvalid;
82
+
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