-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
feat(vdn): add bootnode implementation #2941
base: develop_vdn
Are you sure you want to change the base?
Conversation
} | ||
server.Start() | ||
defer server.Stop() | ||
select {} |
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.
It's may better to add a graceful shutdown logic here~
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.
there is defer on line above, I think it should be sufficient
QueueSize int | ||
EnableQuic bool | ||
EnableDiscovery bool | ||
MinimumSyncPeers int |
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.
Why remove this field MinimumSyncPeers
?
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.
I don't think we need it, if there is at least 1 peer you should broadcast right ?
routingDiscovery := drouting.NewRoutingDiscovery(s.dht) | ||
// Advertise ourselves under the Rendezvous string | ||
log.Info("Advertising Rendezvous", "topic", Rendezvous) | ||
dutil.Advertise(s.ctx, routingDiscovery, Rendezvous) |
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.
I think your implementation of Rendezvous is not centralized. Right? It does not relay on a central point, because of every node will Advertise?
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.
Does Rendezvous guarantee that all nodes will be discovered eventually?
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.
yes, but you need to kind of have a bootstrap address basically, I wanted to make in a way that any node could become bootstrap in case something goes wrong.
Description
This PR is adding new Rendezvous VDN bootnode standalone binary. With this we will be able to bootstrap new network easily.
Example