mirror of
https://github.com/vacp2p/rfc.git
synced 2025-02-20 02:38:31 +00:00
chore: minor change px proto as per linter (#570)
This commit is contained in:
parent
23025b1593
commit
ab661c8276
@ -65,15 +65,15 @@ While any node could technically act as a requester, using the peer exchange pro
|
|||||||
syntax = "proto3";
|
syntax = "proto3";
|
||||||
|
|
||||||
message PeerInfo {
|
message PeerInfo {
|
||||||
bytes ENR = 1;
|
bytes enr = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
message PeerExchangeQuery {
|
message PeerExchangeQuery {
|
||||||
int numPeers; // number of peers requested
|
uint64 num_peers = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
message PeerExchangeResponse {
|
message PeerExchangeResponse {
|
||||||
repeated PeerInfo peerInfos = 1;
|
repeated PeerInfo peer_infos = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
message PeerExchangeRPC {
|
message PeerExchangeRPC {
|
||||||
@ -83,10 +83,10 @@ message PeerExchangeRPC {
|
|||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
The `ENR` field contains a Waku ENR as specified in [31/WAKU2-ENR](/spec/31/).
|
The `enr` field contains a Waku ENR as specified in [31/WAKU2-ENR](/spec/31/).
|
||||||
|
|
||||||
Requesters send a `PeerExchangeQuery` to a peer.
|
Requesters send a `PeerExchangeQuery` to a peer.
|
||||||
Responders SHOULD include a maximum of `numPeers` `PeerInfo` instances into a response.
|
Responders SHOULD include a maximum of `num_peers` `PeerInfo` instances into a response.
|
||||||
Responders send a `PeerExchangeResponse` to requesters containing a list of `PeerInfo` instances, which in turn hold an ENR.
|
Responders send a `PeerExchangeResponse` to requesters containing a list of `PeerInfo` instances, which in turn hold an ENR.
|
||||||
|
|
||||||
# Implementation Suggestions
|
# Implementation Suggestions
|
||||||
|
Loading…
x
Reference in New Issue
Block a user