From e1cc1fe36f195f8b7789cb8784c5c485e3bd57e5 Mon Sep 17 00:00:00 2001 From: orignal Date: Mon, 27 Mar 2017 16:06:36 -0400 Subject: [PATCH] disable checkpoints --- src/checkpoints.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/checkpoints.cpp b/src/checkpoints.cpp index fa25aca..9b343ab 100644 --- a/src/checkpoints.cpp +++ b/src/checkpoints.cpp @@ -121,18 +121,22 @@ namespace Checkpoints int GetTotalBlocksEstimate() { - if (fTestNet) return 0; // Testnet has no checkpoints + return 0; + // TODO: + /*if (fTestNet) return 0; // Testnet has no checkpoints if (!GetBoolArg("-checkpoints", true)) return 0; const MapCheckpoints& checkpoints = *Checkpoints().mapCheckpoints; - return checkpoints.rbegin()->first; + return checkpoints.rbegin()->first;*/ } CBlockIndex* GetLastCheckpoint(const std::map& mapBlockIndex) { - if (fTestNet) return NULL; // Testnet has no checkpoints + return NULL; + // TODO: + /*if (fTestNet) return NULL; // Testnet has no checkpoints if (!GetBoolArg("-checkpoints", true)) return NULL; @@ -145,6 +149,6 @@ namespace Checkpoints if (t != mapBlockIndex.end()) return t->second; } - return NULL; + return NULL;*/ } }