Correct help messages' default number of daemon out peers#10302
Correct help messages' default number of daemon out peers#10302S5NC wants to merge 1 commit intomonero-project:masterfrom
Conversation
I find the differing behavior of One solution could be making I would opt for clarifying the current varying behavior of |
|
-1 means default, not unlimite default (-1) for in-peers is unlimited afaict, -1 never is intended to mean unlimited — there isnt a differing meaning among flags. It always means default (ie unchanged) |
So one issue is that the help message says -1 is the default value, but this isn't very informative, saying 12 is better, like And from your comments it seems that running Because of the above output and my previous experience using CLI tools, I was under the impression that |
|
Issue describing limit -1 confusion: #6683 |
i can confirn that interactively setting
yep :/. The way the limit_* is set, is how i thought out_peers worked as well. |
On daemon initialization the number is of out peers is set to 12 when the
--out-peersoption is not specified, or specified as -1 by runningmonerod --out-peers -1.This implies the default is 12, not unlimited, which is what -1 means in other cases. For example, sending
out_peers -1in the daemon console sets the number of out peers to unlimited.Another set of limits are rate limits. Like the number of peers, it isn't possible to set these to unlimited with options, yet the help messages specify the practical defaults, not the number used internally (except for
--limit-rate, but this option and command has unconventional behavior, setting a symmetric limit as opposed to limiting the total bandwidth).Below is the current output of
monerod --help:Addresses the remark made in #9275.
The inability to have an unlimited number of peers and bandwidth using daemon options could be purposeful. If so, it would be worth documenting this, and if not, further modifications could be made to allow this.
Commits formatted as requested per #10291.