diff options
| author | Bitflash <btf01@proton.me> | 2026-07-29 12:45:48 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-07-29 12:45:48 -0300 |
| commit | 1227068a504418521f3238acf9c4dca297141d27 (patch) | |
| tree | 096e1dfb472e09783cb1a1fba1ab4961111bdfb5 /src/db.cpp | |
| parent | 137a166fe0b95ccdef444041e907358bd26bc226 (diff) | |
main_gui: implement /port, which net.cpp already documented (#28)
net.cpp has described nListenPort as "tunable via /port" since it was written:
unsigned short nListenPort = DEFAULT_PORT; // local P2P port (tunable via /port)
Nothing ever parsed the option. The port was fixed at 8433, so a second node
could not start on a machine already running one -- StartNode fails the bind and
the node comes up with no networking at all. That makes local multi-node testing
impossible, which is how this was found: a two-node test could not be run.
Sets addrLocalHost.port alongside nListenPort, or the node announces a port it
never bound. An out-of-range value is rejected with a message and the default
kept, rather than silently wrapping through the unsigned short cast.
Diffstat (limited to 'src/db.cpp')
0 files changed, 0 insertions, 0 deletions