Skip to content
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

Peer discovery #2

Open
suen opened this issue Jan 22, 2018 · 2 comments
Open

Peer discovery #2

suen opened this issue Jan 22, 2018 · 2 comments

Comments

@suen
Copy link
Owner

suen commented Jan 22, 2018

After the first handshake message, exchange the addresses of connected peer with the new node.

The bitcoin network exchanges the peer address via "getaddr" and "addr".

Define a message format for addr et getaddr and exchange these messages after the initial handshake.
These messages may be exchanged at any point during the exchange.

@suen suen added this to the Relase 0.1 milestone Jan 22, 2018
@suen
Copy link
Owner Author

suen commented Feb 5, 2018

When a peer initiates a connection with another peer, it does so by creating a TCP connection to the remote port. The connecting peer is the client and the remote peer is the server in this context. The port used by connecting peer is not in listen mode and thus other peers cannot use this to establish connection. Thus the remote peers (the servers) should not share the connecting peer's (client) address with others.

@suen
Copy link
Owner Author

suen commented Jun 28, 2018

Do not send self address port in the list of peers sent to the remote peer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants
@suen and others