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

[LIBP2P] Parameterize the DHT timeout #3698

Merged
merged 1 commit into from
Sep 24, 2024
Merged

[LIBP2P] Parameterize the DHT timeout #3698

merged 1 commit into from
Sep 24, 2024

Conversation

jparr721
Copy link
Contributor

Closes #2088

This PR:

Right now, the DHT timeout as specified in the Libp2p network is hardcoded and optimal for 10-30 nodes. We want to parameterize this so we can change it based on the number of actual nodes in the run. This is especially helpful for testing purposes.

This PR adds this feature via the NetworkNodeConfig.

This PR does not:

Key places to review:

Copy link
Collaborator

@rob-maron rob-maron left a comment

Choose a reason for hiding this comment

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

I was concerned with backwards-compatibility but then I remembered this file does not get saved. So all good

@jparr721 jparr721 merged commit 1de03a4 into main Sep 24, 2024
36 of 37 checks passed
@jparr721 jparr721 deleted the jp/2088 branch September 24, 2024 14:22
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.

[LIBP2P] Parameterize the DHT timeout
2 participants