-
Notifications
You must be signed in to change notification settings - Fork 2
Peer Exchange protobuf improvements #14
Comments
Thanks :). I added a milestone issue, consolidating tasks towards the new peer exchange design: vacp2p/research#188 (It is in icebox for now, because SeM focus is on secure scaling for now.) |
Regarding the request ID: Regarding the |
Seeing how many failure we are currently seeing, most likely we will want more than
I think this would re-introduce the previous fixed issue. Because in this case, the light client would need to mount the peer exchange protocol and then, for every connection, it would get unsolicited ENRs via peer exchange. I think it could open to a Sybil attack or we'll have to put in place mitigations such as "only accept N ENRs from a given node". Using |
Yes, we should test larger
I would not suggest to leave the connection open and wait for replies later.
By establishing the connection, the requesting node would solicit a single response from the service node and then close the connection.
Let's keep it that way :). Just a possibility to further simplify, if needed/desired. |
Related: waku-org/nwaku#1521 |
Optional Response/Query
https://github.com/vacp2p/waku/blob/6a89c52065f6e15ef8545f632b93ceda71bf7424/waku/peer_exchange/v2alpha1/peer_exchange.proto#L20
In
PeerExchangeRPC
,query
andresponse
should be optionalresponse
to be undefined.Pascal Casing
Other messages uses Pascal Casing, I would recommend to do the same:
PeerExchangeRpc
Request Id
Other messages uses a Request Id. More of an RFC change. Now that the nwaku implementation does not force a client to mount the protocol, it might not be needed.
Cc @alrevuelta @kaiserd @danisharora099
The text was updated successfully, but these errors were encountered: