Do not reorganize if new branch has same amount of work

pull/59/head
Pieter Wuille 12 years ago
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…
Cancel
Save