ergo
ergo copied to clipboard
`GetPeers` suggestions
Couple of suggestions for GetPeersSpec
messages to help with light node client efficiency, maybe premature optimizations but wanted to make note:
- Include a
count
parameter so the requester can limit how many peers are received, for example a light client might only want to request 10 peers to reduce network usage. If a node sends back more peers than requested and is running on a recent version maybe consider it a malicious peer or just process them. - Include a
filter
(bloom filter maybe) parameter to increase the chance of receiving peers a node doesn't already know about for increased efficiency and reduction in redundant data
Peer entries are just a couple of bytes, is there really any reason to limit how many are received?
Peer entries are just a couple of bytes, is there really any reason to limit how many are received?
Mode feature in peer specs are allowed to be up to 512 bytes alone
I still think it would be nice to have for light clients in particular