-
Notifications
You must be signed in to change notification settings - Fork 990
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
We ignore port when identifying peers - what happens if a peer changes its port? #2618
Comments
It will be an eternal defunct in case of static ip Since change there are less 100 healthy peers The another issue is #2616 |
Another perspective If peer is behind NAT port will change alot If peers are behind a CarrierNAT its worse Not everybody have a public ip |
That's what the NAT is for though, by definition - to provide a stable port forwarding setup, with a "static" port. To allow "inbound" connections you need to be listening on a known port (by default 3414 but you can advertise a non-standard port). |
But peer identity will change 1.2.3.4:56788 If you use only 1.2.3.4 how do you know? the other issue #2616 |
You don't and you don't need to. If the peer on 1.2.3.4 allows inbound connections then its listening on 3414 (or whatever it is configured to listen on). Those ports do not (and should not) have any bearing on the identity of a peer. |
My theory: When I change the port. I am a new node for old nodes x.x.x.x:xxxx And get "attacked" by them The problem may be fixed when all nodes update in next release Sorry for wasted time :) @antiochp |
Is this issue still relevant? @antiochp |
Have inadvertently tested this on testnet during the course of other testing. With a two nodes running on the same machine on different ports: Seems to be working as intended, |
Related #2540.
Possibly related #2616?
Scenario -
10.0.0.1:3414
10.0.0.1
)4414
There is no mechanism to let peers and other nodes know about our updated port.
Do new nodes see our updated port? Only if they get our
ip:port
from us. If they get it from an existing node do they still see the old port?This is kind of an edge-case but we should think through the implications here.
The text was updated successfully, but these errors were encountered: