Skip to content

Commit

Permalink
Update node.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayushdubey86 authored Feb 22, 2025
1 parent 379dece commit 4f8794f
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions crates/optimism/node/src/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -728,13 +728,7 @@ pub fn get_all_op_bootnodes<Node>(ctx: &BuilderContext<Node>) -> Vec<Bootnode>
where
Node: FullNodeTypes<Types: NodeTypes<ChainSpec: Hardforks>>,
{
let network_name = ctx.config().chain.chain.clone().to_lowercase();

if network_name.contains("mainnet") {
params::V5OPBootnodes.to_vec()
} else {
params::V5OPTestnetBootnodes.to_vec()
}
ctx.config().chain.bootnodes().unwrap_or_default()
}

impl<Node, Pool> NetworkBuilder<Node, Pool> for OpNetworkBuilder
Expand Down

0 comments on commit 4f8794f

Please sign in to comment.