From cd6dc96c4fb24f3c40e989442a6503403a944e78 Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Sun, 4 Nov 2012 13:38:51 +0100 Subject: [PATCH] Do not reorganize if new branch has same amount of work --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 43bd5dd47..b69abdb00 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