-
Notifications
You must be signed in to change notification settings - Fork 280
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
Clarify ports / public ports in node HTTP getinfo #696
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. pool host and ports and the public host and ports are shown correctly.
Isn't there a public-brontide-port
like how port
has public-port
?
https://hsd-dev.org/guides/config.html doesn't have it so I guess not, just checking.
Edit: just re-read the desc above and there is. So the config page needs to be edited to include --public-brontide-port
Also, how do you feel about defaulting |
I think no, because they are used for separate things. |
c1620ff
to
cf5a077
Compare
cf5a077
to
093ed24
Compare
Closes #689
The issue is that the ports displayed in
info
are the public ports set by--public-port
and--public-brontide-port
not--port
and--brontide-port
. Public hosts and ports are what we advertise to peers when we are listening for inbound connections, this is the hostname that gets gossiped around the network. The other options set the actual host and port the server actually listens to 🤷♂️Current and unchanged behavior of hsd
--listen=true
--public-host
This PR adds some new fields to the
pool
object in the "get info" JSON. The existing data will now indicate the actual listening host/port and thepublic
object will indicate the advertised data as set by the user. (See examples below).This PR also refactors the
node-http-test
module to make more room for this coverage, and introduces a newp2p-test
module which connects mainnet nodes together with different settings and monitors theADDR
packets transmitted.ex. 1
hsd --memory=true --network=main
ex. 2
hsd --memory=true --network=main --listen=true
ex. 3
hsd --memory=true --network=main --listen=true --public-host=200.99.98.97 --public-port=12345 --public-brontide-port=54321