-
Notifications
You must be signed in to change notification settings - Fork 38.7k
Add -maxoutfullrelay
#21815
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add -maxoutfullrelay
#21815
Conversation
+ User can set maximum outbound full relay connections in `bitcoin.conf` + Value can be anything between 0 and 8
|
Had few questions earlier: https://www.reddit.com/r/Bitcoin/comments/n1fg1y/maximum_number_of_outbound_full_relay_connections/. I think most of them are answered now. |
|
-0. I don't see the use case. Mind explaining? |
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
Not sure if I understand your question correctly. If you are asking about usecase for Example 1: User wants to have 2 Block Relay outbound connections and 1 Full Relay outbound connection with his other node Example 2: User wants to have only Block Relay outbound connections (2) for a while If you are asking about overall usecases for this option |
|
I also don't understand why a user would want to reduce the number of outbound connections- having multiple connections to the network is fundamental to safety against eclipse attacks. If a user configured the node to only have outbound block-relay-only connections, they wouldn't be participating in addr relay, so wouldn't have a diverse addrman to identify candidates to connect to. If the user was interested in, for example, reducing bandwidth usage, they could startup in |
Making it easily possible to increase the default outgoing connections above 8 would put undue load on the network. See the discussion in #4687 as well as many previous discussions. But this can not be merged unless you cap the maximum to 8. So I capped the maximum to 8 in this PR.
Thanks for sharing this. However |
|
|
@sipa Thanks for your response. Closing this PR for now. Will reopen if I have better arguments and some data to support adding such option. |

bitcoin.confaddnodeif required and use 2 block relay connections always. Gives users more control and freedom related to outbound connections and Maximum Outbound Full Relay always stays <=8(ignoringaddnodeconnections`)maxoutfullrelay=0maxoutfullrelay=1maxoutfullrelay=2maxoutfullrelay=N(N >=8)