1
0
mirror of https://github.com/GOSTSec/gostcoin synced 2025-03-13 05:41:11 +00:00

disable checkpoints

This commit is contained in:
orignal 2017-03-27 16:06:36 -04:00
parent cace054403
commit e1cc1fe36f

View File

@ -121,18 +121,22 @@ namespace Checkpoints
int GetTotalBlocksEstimate() 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)) if (!GetBoolArg("-checkpoints", true))
return 0; return 0;
const MapCheckpoints& checkpoints = *Checkpoints().mapCheckpoints; const MapCheckpoints& checkpoints = *Checkpoints().mapCheckpoints;
return checkpoints.rbegin()->first; return checkpoints.rbegin()->first;*/
} }
CBlockIndex* GetLastCheckpoint(const std::map<uint256, CBlockIndex*>& mapBlockIndex) CBlockIndex* GetLastCheckpoint(const std::map<uint256, CBlockIndex*>& mapBlockIndex)
{ {
if (fTestNet) return NULL; // Testnet has no checkpoints return NULL;
// TODO:
/*if (fTestNet) return NULL; // Testnet has no checkpoints
if (!GetBoolArg("-checkpoints", true)) if (!GetBoolArg("-checkpoints", true))
return NULL; return NULL;
@ -145,6 +149,6 @@ namespace Checkpoints
if (t != mapBlockIndex.end()) if (t != mapBlockIndex.end())
return t->second; return t->second;
} }
return NULL; return NULL;*/
} }
} }