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

Clean up P2pConfig #1295

Merged
merged 2 commits into from
Oct 24, 2023
Merged

Clean up P2pConfig #1295

merged 2 commits into from
Oct 24, 2023

Conversation

ImplOfAnImpl
Copy link
Contributor

  1. The max_inbound_connections field was moved to ConnectionCountLimits for consistency.

  2. Protocol-related settings in P2pConfig were moved to a separate struct ProtocolConfig, so that they can be kept close together. With this, I want to close 1201. Note that initially I intended to do a bigger refactoring, e.g. I wanted to make settings like msg_max_locator_count, which are not modified even in tests, constants. Now I think it won't be a good idea, because we may still want to modify them in tests in the future. Just keeping protocol settings in one place should be enough.

@ImplOfAnImpl ImplOfAnImpl force-pushed the make_connection_count_modifiable_in_tests branch from 1e1a3ca to f6e3ade Compare October 24, 2023 17:34
Base automatically changed from make_connection_count_modifiable_in_tests to master October 24, 2023 20:10
@TheQuantumPhysicist TheQuantumPhysicist merged commit d8f7e5f into master Oct 24, 2023
16 checks passed
@TheQuantumPhysicist TheQuantumPhysicist deleted the cleanup_p2p_config branch October 24, 2023 20:10
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.

The P2pConfig struct needs a revamp
2 participants