-
Notifications
You must be signed in to change notification settings - Fork 22
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
Pack the Nodes message more tightly #74
Comments
Please note also that if all buckets are empty, the discovery lib sends several Nodes message. This is because of this line: On my end I see this:
|
@atoulme thanks for the case! The following test should cover this case: |
Description
Currently ENRs for
Nodes
message are packed considering the max ENR size, i.e. max 4 ENRs per packet to fit the max packet size in the worst case.If ENRs are smaller then more records could be packed into a single message.
Also need to consider that the message can be sent withing both
OrdinaryMessage
andHandshake
packets. However forNodes
message (as a response message) this situation is highly unlikely to occur with a honest remote node, so probably just controlling and dropping outgoing too large message would be enough. (see comment #72 (comment))The text was updated successfully, but these errors were encountered: