From e6955d04111e842cce55dc230d9dcc971560a299 Mon Sep 17 00:00:00 2001 From: Jeff Garzik Date: Wed, 28 Nov 2012 12:10:57 -0500 Subject: [PATCH] New 'checkpoints' option should default to true. --- src/checkpoints.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/checkpoints.cpp b/src/checkpoints.cpp index cf3980561..279003072 100644 --- a/src/checkpoints.cpp +++ b/src/checkpoints.cpp @@ -39,7 +39,7 @@ namespace Checkpoints bool CheckBlock(int nHeight, const uint256& hash) { - if (!GetBoolArg("-checkpoints", false)) + if (!GetBoolArg("-checkpoints", true)) return true; MapCheckpoints& checkpoints = (fTestNet ? mapCheckpointsTestnet : mapCheckpoints); @@ -51,7 +51,7 @@ namespace Checkpoints int GetTotalBlocksEstimate() { - if (!GetBoolArg("-checkpoints", false)) + if (!GetBoolArg("-checkpoints", true)) return 0; MapCheckpoints& checkpoints = (fTestNet ? mapCheckpointsTestnet : mapCheckpoints); @@ -61,7 +61,7 @@ namespace Checkpoints CBlockIndex* GetLastCheckpoint(const std::map& mapBlockIndex) { - if (!GetBoolArg("-checkpoints", false)) + if (!GetBoolArg("-checkpoints", true)) return NULL; MapCheckpoints& checkpoints = (fTestNet ? mapCheckpointsTestnet : mapCheckpoints);