Browse Source

Merge pull request #1980 from sipa/noreorgsame

Do not reorganize if new branch has same amount of work
0.8
Pieter Wuille 12 years ago
parent
commit
c07a1a6ee4
  1. 2
      src/main.cpp

2
src/main.cpp

@ -1198,7 +1198,7 @@ bool ConnectBestBlock() { @@ -1198,7 +1198,7 @@ bool ConnectBestBlock() {
pindexNewBest = *it;
}
if (pindexNewBest == pindexBest)
if (pindexNewBest == pindexBest || (pindexBest && pindexNewBest->bnChainWork == pindexBest->bnChainWork))
return true; // nothing to do
// check ancestry

Loading…
Cancel
Save