-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
base: main
Are you sure you want to change the base?
Modified op-reth to always use all OP bootnodes when none are explicitly provided #14603 #14619
Conversation
…tly provided. paradigmxyz#14603 this is the linked git issue paradigmxyz#14603
params::V5OPBootnodes.to_vec() | ||
} else { | ||
params::V5OPTestnetBootnodes.to_vec() |
There was a problem hiding this comment.
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
Co-authored-by: Emilia Hane <[email protected]>
There was a problem hiding this 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
params::V5OPBootnodes.to_vec() | ||
} else { | ||
params::V5OPTestnetBootnodes.to_vec() |
There was a problem hiding this comment.
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()
:
reth/crates/chainspec/src/spec.rs
Lines 646 to 647 in 81cff4a
C::BaseGoerli | C::BaseSepolia => Some(base_testnet_nodes()), | |
C::OptimismSepolia | C::OptimismGoerli | C::OptimismKovan => Some(op_testnet_nodes()), |
I'll make this change and push it by eod |
this is the linked git issue Issue-14603
@mattsse