Skip to content
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

Add clientInfo to ENR for easier testnet debugging #1513

Merged
merged 2 commits into from
Sep 20, 2023
Merged

Conversation

kdeme
Copy link
Contributor

@kdeme kdeme commented Mar 21, 2023

As mentioned in the code, this is a temporary measure, as we probably do not want this information that easily searchable in the DHT for security reasons.

@kdeme
Copy link
Contributor Author

kdeme commented Mar 22, 2023

It appears that the increase of ENR size has the consequence of local testnet tests failing. ENR size increase will have an effect on the amount of ENRs that can fit in one packet.

Some quick debug:
Increasing the maxDiscv5PacketSize by 100 bytes is enough to make the error go away. But it is not a solution as maxDiscv5PacketSize is specced at 1280.
Printing of the routing tables of all nodes in the test does not show much of a difference with the added ENR field vs without it.

This allows for a shorter ENR which allows more ENRs to be packed
in the Nodes reply. And for glados, only the client name is used
anyhow.
@kdeme
Copy link
Contributor Author

kdeme commented Sep 20, 2023

fixes #1755

@kdeme kdeme merged commit 53df21f into master Sep 20, 2023
17 checks passed
@kdeme kdeme deleted the clientInfo-in-enr branch September 20, 2023 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant