Skip to content
Bitcoin Roots

v31.1-roots.1 · Commit 4: [PATCH 04/17] feat(mining): preserve Roots priority and template policies

src/init.cpp

Before: src/init.cpp · After: src/init.cpp

File metadata
index fed689af2441e05abd49f8e96f3ee94a83640d49..c686f4ffbbd327ab8a53ad73e4b6f4a653f8c50b 100644

Download original patch · Release notes

Diff rows 1–21 of 21. Line numbers refer to the original before/after files.

+ Added− RemovedUnmarked lines are context.

Scroll the code area horizontally to read long lines. The two line-number columns refer to before and after.

src/init.cpp CHANGED
@@ -690,8 +690,8 @@ void SetupServerArgs(ArgsManager& argsman, bool can_listen_ipc)
690
690
  argsman.AddArg("-spkreuse=<value>", "Set local script reuse policy: allow or conflict; empty/1 aliases allow, 0 aliases conflict (default: allow).", ArgsManager::ALLOW_ANY | ArgsManager::STRICT_NEGATION, OptionsCategory::NODE_RELAY);
691
691
  argsman.AddArg("-rejecttokens", strprintf("Refuse to relay or mine transactions involving non-bitcoin tokens (default: %u)", DEFAULT_REJECT_TOKENS) + " Values: 0 or 1; no value means 1.", ArgsManager::ALLOW_ANY | ArgsManager::STRICT_NEGATION, OptionsCategory::NODE_RELAY);
692
692
  argsman.AddArg("-rejectparasites", strprintf("Refuse to relay or mine parasitic overlay protocols (default: %u)", DEFAULT_REJECT_PARASITES) + " Values: 0 or 1; no value means 1.", ArgsManager::ALLOW_ANY | ArgsManager::STRICT_NEGATION, OptionsCategory::NODE_RELAY);
693
- argsman.AddArg("-blockmaxsize=<value>", "Staged parsing only; enforcement is deferred to L9 mining. See doc/feature-contracts/policy-parsing.md for accepted grammar.", ArgsManager::ALLOW_ANY | ArgsManager::STRICT_NEGATION | ArgsManager::DEBUG_ONLY, OptionsCategory::NODE_RELAY);
694
- argsman.AddArg("-blockprioritysize=<value>", "Staged parsing only; enforcement is deferred to L9 mining. See doc/feature-contracts/policy-parsing.md for accepted grammar.", ArgsManager::ALLOW_ANY | ArgsManager::STRICT_NEGATION | ArgsManager::DEBUG_ONLY, OptionsCategory::NODE_RELAY);
693
+ argsman.AddArg("-blockmaxsize=<value>", "Set maximum serialized block size in bytes (unset: protocol maximum; size-only leaves weight unrestricted)", ArgsManager::ALLOW_ANY | ArgsManager::STRICT_NEGATION | ArgsManager::DEBUG_ONLY, OptionsCategory::BLOCK_CREATION);
694
+ argsman.AddArg("-blockprioritysize=<value>", strprintf("Set serialized bytes reserved for coin-age priority selection (default: %u; 0 disables)", DEFAULT_BLOCK_PRIORITY_SIZE), ArgsManager::ALLOW_ANY | ArgsManager::STRICT_NEGATION | ArgsManager::DEBUG_ONLY, OptionsCategory::BLOCK_CREATION);
695
695
  argsman.AddArg("-acceptnonstdtxn", strprintf("Relay and mine \"non-standard\" transactions (test networks only; default: %u)", DEFAULT_ACCEPT_NON_STD_TXN), ArgsManager::ALLOW_ANY | ArgsManager::DEBUG_ONLY, OptionsCategory::NODE_RELAY);
696
696
  argsman.AddArg("-incrementalrelayfee=<amt>", strprintf("Fee rate (in %s/kvB) used to define cost of relay, used for mempool limiting and replacement policy. (default: %s)", CURRENCY_UNIT, FormatMoney(DEFAULT_INCREMENTAL_RELAY_FEE)), ArgsManager::ALLOW_ANY | ArgsManager::DEBUG_ONLY, OptionsCategory::NODE_RELAY);
697
697
  argsman.AddArg("-dustrelayfee=<amt>", strprintf("Fee rate (in %s/kvB) used to define dust, the value of an output such that it will cost more than its value in fees at this fee rate to spend it. (default: %s)", CURRENCY_UNIT, FormatMoney(DUST_RELAY_TX_FEE)), ArgsManager::ALLOW_ANY | ArgsManager::DEBUG_ONLY, OptionsCategory::NODE_RELAY);
@@ -942,11 +942,6 @@ bool AppInitBasicSetup(const ArgsManager& args, std::atomic<int>& exit_status)
942
942
  bool AppInitParameterInteraction(const ArgsManager& args)
943
943
  {
944
944
  if (auto result = ValidateRootsPolicyOptions(args); !result) return InitError(util::ErrorString(result));
945
- for (const char* option : {"-blockmaxsize", "-blockprioritysize"}) {
946
- if (args.IsArgSet(option)) {
947
- InitWarning(Untranslated(strprintf("%s is parsed but not enforced in this staged candidate; graph policy and mining implementations are pending.", option)));
948
- }
949
- }
950
945
  const CChainParams& chainparams = Params();
951
946
  // ********************************************************* Step 2: parameter interactions
952
947