diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2012-11-04 13:38:51 +0100 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2012-11-05 21:24:11 +0100 |
commit | cd6dc96c4fb24f3c40e989442a6503403a944e78 (patch) | |
tree | 42205f12787a39d77b103bf6cca8638db14129f5 | |
parent | 86406daeca0390b13457cc4f8d5f24fa5bf54557 (diff) |
Do not reorganize if new branch has same amount of work
-rw-r--r-- | src/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 43bd5dd472..b69abdb00f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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 |