mana icon indicating copy to clipboard operation
mana copied to clipboard

Determine which peers to communicate with

Open germsvel opened this issue 6 years ago • 1 comments

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.

germsvel avatar May 15 '18 19:05 germsvel

I think this is related to #639.

InoMurko avatar Dec 03 '18 23:12 InoMurko