diff options
| author | Pieter Wuille <[email protected]> | 2012-11-22 13:33:03 -0800 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2012-11-22 13:33:03 -0800 |
| commit | c07a1a6ee4d39ba04083cd7cb83fc31e91a096d5 (patch) | |
| tree | e8df83017f1e7778c96d179f6818652ee3476e94 /src/main.cpp | |
| parent | Merge pull request #2024 from Diapolo/fix_qt_crash (diff) | |
| parent | Do not reorganize if new branch has same amount of work (diff) | |
| download | discoin-c07a1a6ee4d39ba04083cd7cb83fc31e91a096d5.tar.xz discoin-c07a1a6ee4d39ba04083cd7cb83fc31e91a096d5.zip | |
Merge pull request #1980 from sipa/noreorgsame
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 808c213d6..e2e993a13 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1198,7 +1198,7 @@ bool ConnectBestBlock() { pindexNewBest = *it; } - if (pindexNewBest == pindexBest) + if (pindexNewBest == pindexBest || (pindexBest && pindexNewBest->bnChainWork == pindexBest->bnChainWork)) return true; // nothing to do // check ancestry |