Set maxscriptsize policy option default to 1650 (like MAX_STANDARD_SCRIPTSIG_SIZE)

This commit is contained in:
Luke Dashjr 2025-02-04 01:53:39 +00:00
parent 3e1b343fef
commit 57fadfa036
2 changed files with 2 additions and 2 deletions

View File

@ -809,7 +809,7 @@ void InitParameterInteraction(ArgsManager& args)
args.SoftSetArg("-datacarriercost", "0.25"); args.SoftSetArg("-datacarriercost", "0.25");
args.SoftSetArg("-datacarrierfullcount", "0"); args.SoftSetArg("-datacarrierfullcount", "0");
args.SoftSetArg("-datacarriersize", "83"); args.SoftSetArg("-datacarriersize", "83");
args.SoftSetArg("-maxscriptsize", strprintf("%s", std::numeric_limits<unsigned int>::max()));
args.SoftSetArg("-spkreuse", "allow"); args.SoftSetArg("-spkreuse", "allow");
args.SoftSetArg("-blockprioritysize", "0"); args.SoftSetArg("-blockprioritysize", "0");
args.SoftSetArg("-blockmaxsize", "4000000"); args.SoftSetArg("-blockmaxsize", "4000000");

View File

@ -45,7 +45,7 @@ static constexpr unsigned int MAX_STANDARD_TX_SIGOPS_COST{MAX_BLOCK_SIGOPS_COST/
/** Default for -incrementalrelayfee, which sets the minimum feerate increase for mempool limiting or replacement **/ /** Default for -incrementalrelayfee, which sets the minimum feerate increase for mempool limiting or replacement **/
static constexpr unsigned int DEFAULT_INCREMENTAL_RELAY_FEE{1000}; static constexpr unsigned int DEFAULT_INCREMENTAL_RELAY_FEE{1000};
/** Default for -maxscriptsize */ /** Default for -maxscriptsize */
static constexpr unsigned int DEFAULT_SCRIPT_SIZE_POLICY_LIMIT{std::numeric_limits<unsigned int>::max()}; static constexpr unsigned int DEFAULT_SCRIPT_SIZE_POLICY_LIMIT{1650};
/** Default for -bytespersigop */ /** Default for -bytespersigop */
static constexpr unsigned int DEFAULT_BYTES_PER_SIGOP{20}; static constexpr unsigned int DEFAULT_BYTES_PER_SIGOP{20};
/** Default for -bytespersigopstrict */ /** Default for -bytespersigopstrict */