File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -1141,7 +1141,7 @@ static void CheckForkWarningConditionsOnNewFork(CBlockIndex* pindexNewForkTip)
1141
1141
// or a chain that is entirely longer than ours and invalid (note that this should be detected by both)
1142
1142
// We define it this way because it allows us to only store the highest fork tip (+ base) which meets
1143
1143
// the 7-block condition and from this always have the most-likely-to-cause-warning fork
1144
- if (pfork && (!pindexBestForkTip || (pindexBestForkTip && pindexNewForkTip->nHeight > pindexBestForkTip->nHeight ) ) &&
1144
+ if (pfork && (!pindexBestForkTip || pindexNewForkTip->nHeight > pindexBestForkTip->nHeight ) &&
1145
1145
pindexNewForkTip->nChainWork - pfork->nChainWork > (GetBlockProof (*pfork) * 7 ) &&
1146
1146
chainActive.Height () - pindexNewForkTip->nHeight < 72 )
1147
1147
{
You can’t perform that action at this time.
0 commit comments