-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Working on this commit: * Nodes connect to a seed node, do ProtocolAddr, ping themselves and send over their ADDR if the address is reachable. * Seed nodes add addresses into greylist, probe them to make sure they're reachable, then promote to whitelist and send to other peers. * On receiving whitelisted addresses, nodes add to greylist and after performing refinery process, promote to whitelist. Still TODO: * reimplement address filtering * test: unstable_sort_by_key * implement "anchor" connections when we've already established a connection to a node * keep track of how many times we ping ourselves to avoid redundant self ping * idle handshake protocol
- Loading branch information
1 parent
5f46a9e
commit 2e63d65
Showing
5 changed files
with
193 additions
and
173 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.