fix: Set default peering port to 2459 - #6848
Conversation
|
If only the most recent commit is unsigned, you can run:
If multiple commits are unsigned, you can run:
If you're new to commit signing, there are different ways to set it up: Sign commits with
|
…higher up in the config default file. This just forces lazy operators accross.
6cacf0f to
8f9d718
Compare
|
This is long overdue. |
|
@bthomee how do you feel about the convention of leaving default items in config files commented out? |
That sounds reasonable to me, in principle. However, do we have any mechanism in place to guarantee that the values we think are the default (as stated in the config file) are actually the default (as executed by the code)? |
The [port_peer] section is purely user-configured — there's no fallback to DEFAULT_PEER_PORT if [port] is omitted (it would just fail to parse). The 2459 default only kicks in for [ips]/[ips_fixed] entries and the connect RPC when no port is specified. By that view as well then one should default the whole stanza for [port_peer] ? |
|
It seems it is totally required to be specified. I guess I thought it might not be since it does get used automatically elsewhere. Let's just leave it as is until the config gets a deeper refactor I guess. |
|
@shortthefomo ready to merge? |
There was a problem hiding this comment.
Pull request overview
Updates the example xrpld configuration to use the IANA-registered XRPL peering port (2459) as the default listening port, aligning the sample config with current network expectations while leaving legacy-port guidance elsewhere in the file.
Changes:
- Change
[port_peer]defaultportfrom51235to2459. - Remove the local backward-compatibility comment block from the
[port_peer]stanza (legacy guidance remains earlier in the file under[ips]).
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@bthomee there is no blocker from me it is good to go. I had closed this previously due to this comment
|
@shortthefomo Sorry for the confusion. I meant to not try to change the config to be showing the defaults as commented out. I think multiple people are working on config refactors. Definitely wanted the IANA port as the default in the config, thanks! |
Co-authored-by: Bart <bthomee@users.noreply.github.com>
only leave the correct default in place 2459 and not 51235
force the default port, the backwards compatibility is still present higher up in the config default file. This just forces lazy operators across.
default port was giving back in 2019 #3037
the definition is still provided higher up in the file
fixes issue #6847