mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 04:52:59 +01:00
New 'checkpoints' option should default to true.
This commit is contained in:
parent
857b3ad923
commit
e6955d0411
@ -39,7 +39,7 @@ namespace Checkpoints
|
|||||||
|
|
||||||
bool CheckBlock(int nHeight, const uint256& hash)
|
bool CheckBlock(int nHeight, const uint256& hash)
|
||||||
{
|
{
|
||||||
if (!GetBoolArg("-checkpoints", false))
|
if (!GetBoolArg("-checkpoints", true))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
MapCheckpoints& checkpoints = (fTestNet ? mapCheckpointsTestnet : mapCheckpoints);
|
MapCheckpoints& checkpoints = (fTestNet ? mapCheckpointsTestnet : mapCheckpoints);
|
||||||
@ -51,7 +51,7 @@ namespace Checkpoints
|
|||||||
|
|
||||||
int GetTotalBlocksEstimate()
|
int GetTotalBlocksEstimate()
|
||||||
{
|
{
|
||||||
if (!GetBoolArg("-checkpoints", false))
|
if (!GetBoolArg("-checkpoints", true))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
MapCheckpoints& checkpoints = (fTestNet ? mapCheckpointsTestnet : mapCheckpoints);
|
MapCheckpoints& checkpoints = (fTestNet ? mapCheckpointsTestnet : mapCheckpoints);
|
||||||
@ -61,7 +61,7 @@ namespace Checkpoints
|
|||||||
|
|
||||||
CBlockIndex* GetLastCheckpoint(const std::map<uint256, CBlockIndex*>& mapBlockIndex)
|
CBlockIndex* GetLastCheckpoint(const std::map<uint256, CBlockIndex*>& mapBlockIndex)
|
||||||
{
|
{
|
||||||
if (!GetBoolArg("-checkpoints", false))
|
if (!GetBoolArg("-checkpoints", true))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
MapCheckpoints& checkpoints = (fTestNet ? mapCheckpointsTestnet : mapCheckpoints);
|
MapCheckpoints& checkpoints = (fTestNet ? mapCheckpointsTestnet : mapCheckpoints);
|
||||||
|
Loading…
Reference in New Issue
Block a user