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

Determine which peers to communicate with #74

Open
germsvel opened this issue May 15, 2018 · 1 comment
Open

Determine which peers to communicate with #74

germsvel opened this issue May 15, 2018 · 1 comment

Comments

@germsvel
Copy link
Contributor

We currently have part of the ethereum wire protocol (sub-protocol) v62 implemented in lib/ex_wire/sync.ex. Thus far, that module can send GetBlockHeaders, GetBlockBodies, and receives BlockHeaders and BlockBodies. But when we need to send out a message, we ask the supervisor of all the peers (ExWire.PeerSupervisor) to send the message to all peers.

I do know if that is the best way to handle requesting things like GetBlockHeaders, or if we should be targeting a particular peer (if we have received a message from it), or if we should be doing it round robin or something like that.

@InoMurko
Copy link
Member

InoMurko commented Dec 3, 2018

I think this is related to #639.

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

3 participants