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

Modified op-reth to always use all OP bootnodes when none are explicitly provided #14603 #14619

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Ayushdubey86
Copy link

@Ayushdubey86 Ayushdubey86 commented Feb 20, 2025

this is the linked git issue Issue-14603
@mattsse

@emhane emhane added A-devp2p Related to the Ethereum P2P protocol A-networking Related to networking in general A-op-reth Related to Optimism and op-reth labels Feb 21, 2025
Comment on lines +734 to +736
params::V5OPBootnodes.to_vec()
} else {
params::V5OPTestnetBootnodes.to_vec()
Copy link
Member

Choose a reason for hiding this comment

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

these constants can be declared in the config module

Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

we can drastically simplify this actually if we just change the match I referenced below

Comment on lines +734 to +736
params::V5OPBootnodes.to_vec()
} else {
params::V5OPTestnetBootnodes.to_vec()
Copy link
Collaborator

Choose a reason for hiding this comment

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

actually we can make this redundant

if we change just change this to is_optimism() and is_testnet():

C::BaseGoerli | C::BaseSepolia => Some(base_testnet_nodes()),
C::OptimismSepolia | C::OptimismGoerli | C::OptimismKovan => Some(op_testnet_nodes()),

@Ayushdubey86
Copy link
Author

I'll make this change and push it by eod

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-devp2p Related to the Ethereum P2P protocol A-networking Related to networking in general A-op-reth Related to Optimism and op-reth
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants