Browse Source

Do not reorganize if new branch has same amount of work

miguelfreitas
Pieter Wuille 12 years ago
parent
commit
cd6dc96c4f
  1. 2
      src/main.cpp

2
src/main.cpp

@ -1196,7 +1196,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…
Cancel
Save