File tree Expand file tree Collapse file tree 3 files changed +5
-1
lines changed
Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -250,6 +250,7 @@ class CRegTestParams : public CTestNetParams {
250250 virtual bool RequireRPCPassword () const { return false ; }
251251 virtual bool MiningRequiresPeers () const { return false ; }
252252 virtual bool MineBlocksOnDemand () const { return true ; }
253+ virtual bool DefaultCheckMemPool () const { return true ; }
253254 virtual Network NetworkID () const { return CChainParams::REGTEST; }
254255};
255256static CRegTestParams regTestParams;
Original file line number Diff line number Diff line change @@ -63,6 +63,8 @@ class CChainParams
6363 virtual bool RequireRPCPassword () const { return true ; }
6464 /* Make miner wait to have peers to avoid wasting work */
6565 virtual bool MiningRequiresPeers () const { return true ; }
66+ /* Default value for -checkmempool argument */
67+ virtual bool DefaultCheckMemPool () const { return false ; }
6668 const string& DataDir () const { return strDataDir; }
6769 /* Make miner stop after a block is found. In RPC, don't return
6870 * until nGenProcLimit blocks are generated */
Original file line number Diff line number Diff line change @@ -517,7 +517,8 @@ bool AppInit2(boost::thread_group& threadGroup)
517517 InitWarning (_ (" Warning: Deprecated argument -debugnet ignored, use -debug=net" ));
518518
519519 fBenchmark = GetBoolArg (" -benchmark" , false );
520- mempool.setSanityCheck (GetBoolArg (" -checkmempool" , RegTest ()));
520+ // Checkmempool defaults to true in regtest mode
521+ mempool.setSanityCheck (GetBoolArg (" -checkmempool" , Params ().DefaultCheckMemPool ()));
521522 Checkpoints::fEnabled = GetBoolArg (" -checkpoints" , true );
522523
523524 // -par=0 means autodetect, but nScriptCheckThreads==0 means no concurrency
You can’t perform that action at this time.
0 commit comments