From aa9141cd8185cb7ad532bc16feb9d302b05d9697 Mon Sep 17 00:00:00 2001 From: Carl Dong Date: Thu, 28 Oct 2021 14:13:04 -0400 Subject: mempool: Pass in -mempoolexpiry instead of referencing gArgs - Store the mempool expiry (-mempoolexpiry) in CTxMemPool as a std::chrono::seconds member. - Remove the requirement to explicitly specify a mempool expiry for LimitMempoolSize(...), just use the newly-introduced member. - Remove all now-unnecessary instances of: std::chrono::hours{gArgs.GetIntArg("-mempoolexpiry", DEFAULT_MEMPOOL_EXPIRY)} --- src/validation.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/validation.h') diff --git a/src/validation.h b/src/validation.h index 3b6cd509c6..0e27e117fa 100644 --- a/src/validation.h +++ b/src/validation.h @@ -59,8 +59,6 @@ namespace Consensus { struct Params; } // namespace Consensus -/** Default for -mempoolexpiry, expiration time for mempool transactions in hours */ -static const unsigned int DEFAULT_MEMPOOL_EXPIRY = 336; /** Maximum number of dedicated script-checking threads allowed */ static const int MAX_SCRIPTCHECK_THREADS = 15; /** -par default (number of script-checking threads, 0 = auto) */ -- cgit v1.2.3