mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 12:32:48 +01:00
Do not reorganize if new branch has same amount of work
This commit is contained in:
parent
86406daeca
commit
cd6dc96c4f
@ -1196,7 +1196,7 @@ bool ConnectBestBlock() {
|
||||
pindexNewBest = *it;
|
||||
}
|
||||
|
||||
if (pindexNewBest == pindexBest)
|
||||
if (pindexNewBest == pindexBest || (pindexBest && pindexNewBest->bnChainWork == pindexBest->bnChainWork))
|
||||
return true; // nothing to do
|
||||
|
||||
// check ancestry
|
||||
|
Loading…
Reference in New Issue
Block a user