Default policy: Set acceptnonstddatacarrier=0 (corepolicy resets to 1)

This commit is contained in:
Luke Dashjr 2024-03-06 04:02:06 +00:00
parent 73fed175b7
commit e1e3b8137f
2 changed files with 2 additions and 1 deletions

View File

@ -804,6 +804,7 @@ static bool AppInitServers(NodeContext& node)
void InitParameterInteraction(ArgsManager& args) void InitParameterInteraction(ArgsManager& args)
{ {
if (args.GetBoolArg("-corepolicy", DEFAULT_COREPOLICY)) { if (args.GetBoolArg("-corepolicy", DEFAULT_COREPOLICY)) {
args.SoftSetArg("-acceptnonstddatacarrier", "1");
args.SoftSetArg("-bytespersigopstrict", "0"); args.SoftSetArg("-bytespersigopstrict", "0");
args.SoftSetArg("-permitbarepubkey", "1"); args.SoftSetArg("-permitbarepubkey", "1");
args.SoftSetArg("-permitbaremultisig", "1"); args.SoftSetArg("-permitbaremultisig", "1");

View File

@ -33,7 +33,7 @@ static constexpr TRUCPolicy DEFAULT_MEMPOOL_TRUC_POLICY{TRUCPolicy::Enforce};
/** Whether to fall back to legacy V1 serialization when writing mempool.dat */ /** Whether to fall back to legacy V1 serialization when writing mempool.dat */
static constexpr bool DEFAULT_PERSIST_V1_DAT{false}; static constexpr bool DEFAULT_PERSIST_V1_DAT{false};
/** Default for -acceptnonstddatacarrier */ /** Default for -acceptnonstddatacarrier */
static constexpr bool DEFAULT_ACCEPT_NON_STD_DATACARRIER{true}; static constexpr bool DEFAULT_ACCEPT_NON_STD_DATACARRIER{false};
/** Default for -acceptnonstdtxn */ /** Default for -acceptnonstdtxn */
static constexpr bool DEFAULT_ACCEPT_NON_STD_TXN{false}; static constexpr bool DEFAULT_ACCEPT_NON_STD_TXN{false};