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

p2p/discover: add Table configuration and Nodes method #27387

Merged
merged 3 commits into from
May 31, 2023

Conversation

fjl
Copy link
Contributor

@fjl fjl commented May 30, 2023

This adds config parameters for basic node table settings. These settings were previously
hard-coded, and it was not easily possible to change them for experimentation.

fjl added 3 commits May 30, 2023 16:35
Even though it's public, this method is not callable by code outside of
package p2p/discover because one can't get a valid instance of Table.
In unit tests and externally developed cmd/devp2p test runs, it can be
useful to tune the timer intervals used by Table.
@fjl fjl requested a review from zsfelfoldi as a code owner May 30, 2023 15:00
@fjl fjl requested a review from lightclient May 30, 2023 15:04
Copy link
Contributor

@holiman holiman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fjl fjl added this to the 1.12.1 milestone May 31, 2023
@fjl fjl merged commit ac86547 into ethereum:master May 31, 2023
devopsbo3 pushed a commit to HorizenOfficial/go-ethereum that referenced this pull request Nov 10, 2023
* p2p/discover: remove ReadRandomNodes

Even though it's public, this method is not callable by code outside of
package p2p/discover because one can't get a valid instance of Table.

* p2p/discover: add Table.Nodes

* p2p/discover: make Table settings configurable

In unit tests and externally developed cmd/devp2p test runs, it can be
useful to tune the timer intervals used by Table.
devopsbo3 added a commit to HorizenOfficial/go-ethereum that referenced this pull request Nov 10, 2023
devopsbo3 added a commit to HorizenOfficial/go-ethereum that referenced this pull request Nov 10, 2023
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.

2 participants