diff options
| author | Pieter Wuille <[email protected]> | 2012-11-04 13:38:51 +0100 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2012-11-05 21:24:11 +0100 |
| commit | cd6dc96c4fb24f3c40e989442a6503403a944e78 (patch) | |
| tree | 42205f12787a39d77b103bf6cca8638db14129f5 /src/main.cpp | |
| parent | Merge pull request #1830 from Diapolo/trans_rem_spaces (diff) | |
| download | discoin-cd6dc96c4fb24f3c40e989442a6503403a944e78.tar.xz discoin-cd6dc96c4fb24f3c40e989442a6503403a944e78.zip | |
Do not reorganize if new branch has same amount of work
Diffstat (limited to 'src/main.cpp')
| -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 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 |