Merge pull request #1980 from sipa/noreorgsame
Do not reorganize if new branch has same amount of work
This commit is contained in:
commit
c07a1a6ee4
1 changed files with 1 additions and 1 deletions
|
@ -1198,7 +1198,7 @@ bool ConnectBestBlock() {
|
||||||
pindexNewBest = *it;
|
pindexNewBest = *it;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pindexNewBest == pindexBest)
|
if (pindexNewBest == pindexBest || (pindexBest && pindexNewBest->bnChainWork == pindexBest->bnChainWork))
|
||||||
return true; // nothing to do
|
return true; // nothing to do
|
||||||
|
|
||||||
// check ancestry
|
// check ancestry
|
||||||
|
|
Loading…
Reference in a new issue