Skip to content

Rename -onlynet to -outboundnet - #37048

Open
darosior wants to merge 3 commits into
bitcoin:masterfrom
darosior:2612_outboundnet
Open

darosior wants to merge 3 commits into
bitcoin:masterfrom
darosior:2612_outboundnet

Conversation

@darosior

@darosior darosior commented Dec 2, 2026

Copy link
Copy Markdown
Member

The -onlynet name is misleading, since that option only restricts automatic outbound connections. Manual and inbound connections may still be established on other networks. This has been a source of confusion, sometimes even among contributors to the software. Fix this by renaming the option to -outboundnet, which better suggests what the option achieves. The term "outbound" is already used in multiples places in our user interfaces.

-onlynet only restricts automatic outbound connections: the node still
binds to and accepts inbound connections on other networks, and manual
connections are unaffected.

The name suggests otherwise, this has led to confusion, sometimes even
among contributors. Therefore rename the misleading option so what it
achieves is clearer to users. The term "outbound" is already used in
multiple places in our user interface.
Leave alone the lines that handle the deprecated -onlynet alias.

-BEGIN VERIFY SCRIPT-
git grep -l onlynet -- src doc test ':(exclude)src/qt' ':(exclude)doc/release-notes' | xargs sed -i -e '/[Dd]eprecated\|"-onlynet/!s/onlynet/outboundnet/g' -e 's/onlynet_used_with_onion/outboundnet_used_with_onion/g'
-END VERIFY SCRIPT-
@DrahtBot

DrahtBot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

External sites

Reviews

See the guideline and AI policy for information on the review process.
A summary of reviews will appear here.

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #37055 (refactor: drop format calls on strings without arguments by fanquake)
  • #36540 (mempool: remove time-based transaction expiry by ismaelsadeeq)

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.

@darosior
darosior force-pushed the 2612_outboundnet branch 2 times, most recently from adcf6c9 to 1d511ad Compare December 2, 2026 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants