mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-18 13:17:55 +02:00
Merge ad09b76275 into merged_master (Bitcoin PR bitcoin/bitcoin#26471)
This commit is contained in:
commit
10176a3189
4 changed files with 22 additions and 4 deletions
|
|
@ -792,10 +792,13 @@ void InitParameterInteraction(ArgsManager& args)
|
|||
LogPrintf("%s: parameter interaction: -externalip set -> setting -discover=0\n", __func__);
|
||||
}
|
||||
|
||||
// disable whitelistrelay in blocksonly mode
|
||||
if (args.GetBoolArg("-blocksonly", DEFAULT_BLOCKSONLY)) {
|
||||
// disable whitelistrelay in blocksonly mode
|
||||
if (args.SoftSetBoolArg("-whitelistrelay", false))
|
||||
LogPrintf("%s: parameter interaction: -blocksonly=1 -> setting -whitelistrelay=0\n", __func__);
|
||||
// Reduce default mempool size in blocksonly mode to avoid unexpected resource usage
|
||||
if (args.SoftSetArg("-maxmempool", ToString(DEFAULT_BLOCKSONLY_MAX_MEMPOOL_SIZE_MB)))
|
||||
LogPrintf("%s: parameter interaction: -blocksonly=1 -> setting -maxmempool=%d\n", __func__, DEFAULT_BLOCKSONLY_MAX_MEMPOOL_SIZE_MB);
|
||||
}
|
||||
|
||||
// Forcing relay from whitelisted hosts implies we will accept relays from them in the first place.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue