Skip to content

Commit 0f1ff20

Browse files
authored
fix(config): default back gas limit to 45M on mainnet (paradigmxyz#17690)
1 parent f0051e1 commit 0f1ff20

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

crates/node/core/src/cli/config.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ use reth_network::{protocol::IntoRlpxSubProtocol, NetworkPrimitives};
77
use reth_transaction_pool::PoolConfig;
88
use std::{borrow::Cow, time::Duration};
99

10+
/// 45M gas limit
11+
const ETHEREUM_BLOCK_GAS_LIMIT_45M: u64 = 45_000_000;
12+
1013
/// 60M gas limit
1114
const ETHEREUM_BLOCK_GAS_LIMIT_60M: u64 = 60_000_000;
1215

@@ -42,9 +45,10 @@ pub trait PayloadBuilderConfig {
4245
}
4346

4447
match chain.kind() {
45-
ChainKind::Named(
46-
NamedChain::Mainnet | NamedChain::Sepolia | NamedChain::Holesky | NamedChain::Hoodi,
47-
) => ETHEREUM_BLOCK_GAS_LIMIT_60M,
48+
ChainKind::Named(NamedChain::Sepolia | NamedChain::Holesky | NamedChain::Hoodi) => {
49+
ETHEREUM_BLOCK_GAS_LIMIT_60M
50+
}
51+
ChainKind::Named(NamedChain::Mainnet) => ETHEREUM_BLOCK_GAS_LIMIT_45M,
4852
_ => ETHEREUM_BLOCK_GAS_LIMIT_36M,
4953
}
5054
}

0 commit comments

Comments
 (0)