aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorRoss Nicoll <[email protected]>2015-08-07 21:23:56 +0000
committerRoss Nicoll <[email protected]>2015-08-07 21:23:56 +0000
commit0e4f62a3a98a5bb057848dc9e827b353dd8078f7 (patch)
tree50868dc8121e14e45b9c6bc9d04f53aebe2eec8c /src/main.cpp
parentMerge pull request #1201 from rnicoll/1.10-sync (diff)
downloaddiscoin-0e4f62a3a98a5bb057848dc9e827b353dd8078f7.tar.xz
discoin-0e4f62a3a98a5bb057848dc9e827b353dd8078f7.zip
Update fork detection parameters for Dogecoin block time
I've multiplied fork detection parameters by 5 - the wall clock time elapsed for "long" forks is therefore half that of Bitcoin, but IMHO those figures are excessive for a chain with 1 minute block times.
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp
index dfcd50310..6deee37e3 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1257,12 +1257,12 @@ void CheckForkWarningConditions()
if (IsInitialBlockDownload())
return;
- // If our best fork is no longer within 72 blocks (+/- 12 hours if no one mines it)
+ // If our best fork is no longer within 360 blocks (+/- 6 hours if no one mines it)
// of our head, drop it
- if (pindexBestForkTip && chainActive.Height() - pindexBestForkTip->nHeight >= 72)
+ if (pindexBestForkTip && chainActive.Height() - pindexBestForkTip->nHeight >= 360)
pindexBestForkTip = NULL;
- if (pindexBestForkTip || (pindexBestInvalid && pindexBestInvalid->nChainWork > chainActive.Tip()->nChainWork + (GetBlockProof(*chainActive.Tip()) * 6)))
+ if (pindexBestForkTip || (pindexBestInvalid && pindexBestInvalid->nChainWork > chainActive.Tip()->nChainWork + (GetBlockProof(*chainActive.Tip()) * 30)))
{
if (!fLargeWorkForkFound && pindexBestForkBase)
{