From 3922f1ff97a8fac588405912ba8ffc6b84c65c75 Mon Sep 17 00:00:00 2001 From: nkostoulas Date: Wed, 23 Oct 2019 14:09:26 +0100 Subject: [PATCH] Disable default consistency checks (checkmempool/checblockindex) on mainnet chains --- src/chainparams.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/chainparams.cpp b/src/chainparams.cpp index 2d4399e864..640552c5d1 100644 --- a/src/chainparams.cpp +++ b/src/chainparams.cpp @@ -329,6 +329,8 @@ class CMainParams : public CCustomParams { consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nStartTime = 1199145601; // January 1, 2008 consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].nTimeout = 1230767999; // December 31, 2008 + fDefaultConsistencyChecks = false; + base58Prefixes[PUBKEY_ADDRESS] = std::vector(1,0); base58Prefixes[SCRIPT_ADDRESS] = std::vector(1,5); base58Prefixes[BLINDED_ADDRESS]= std::vector(1,11); @@ -348,6 +350,8 @@ class CGoldParams : public CCustomParams { public: CGoldParams(const std::string& chain) : CCustomParams(chain) { + fDefaultConsistencyChecks = false; + base58Prefixes[PUBKEY_ADDRESS] = std::vector(1,38); // G base58Prefixes[SCRIPT_ADDRESS] = std::vector(1,97); // g base58Prefixes[BLINDED_ADDRESS]= std::vector(1,13);