File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -2521,11 +2521,8 @@ static bool ActivateBestChainStep(CValidationState& state, const CChainParams& c
2521
2521
// Disconnect active blocks which are no longer in the best chain.
2522
2522
bool fBlocksDisconnected = false ;
2523
2523
while (chainActive.Tip () && chainActive.Tip () != pindexFork) {
2524
- if (!DisconnectTip (state, chainparams.GetConsensus ())) {
2525
- // Probably an AbortNode() error, but try to keep mempool consistent anyway
2526
- mempool.removeForReorg (pcoinsTip, chainActive.Tip ()->nHeight + 1 );
2524
+ if (!DisconnectTip (state, chainparams.GetConsensus ()))
2527
2525
return false ;
2528
- }
2529
2526
fBlocksDisconnected = true ;
2530
2527
}
2531
2528
@@ -2559,9 +2556,6 @@ static bool ActivateBestChainStep(CValidationState& state, const CChainParams& c
2559
2556
break ;
2560
2557
} else {
2561
2558
// A system error occurred (disk space, database error, ...).
2562
- // Probably gonna shut down ASAP, but try to keep mempool consistent anyway
2563
- if (fBlocksDisconnected )
2564
- mempool.removeForReorg (pcoinsTip, chainActive.Tip ()->nHeight + 1 );
2565
2559
return false ;
2566
2560
}
2567
2561
} else {
You can’t perform that action at this time.
0 commit comments