mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
Increase default gas limit from 30M to 36M (#13318)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
2
book/cli/reth/node.md
vendored
2
book/cli/reth/node.md
vendored
@ -531,7 +531,7 @@ Builder:
|
||||
--builder.gaslimit <GAS_LIMIT>
|
||||
Target gas limit for built blocks
|
||||
|
||||
[default: 30000000]
|
||||
[default: 36000000]
|
||||
|
||||
--builder.interval <DURATION>
|
||||
The interval at which the job should build a new payload after the last.
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
use crate::{cli::config::PayloadBuilderConfig, version::default_extra_data};
|
||||
use alloy_consensus::constants::MAXIMUM_EXTRA_DATA_SIZE;
|
||||
use alloy_eips::{eip1559::ETHEREUM_BLOCK_GAS_LIMIT_30M, merge::SLOT_DURATION};
|
||||
use alloy_eips::{eip1559::ETHEREUM_BLOCK_GAS_LIMIT_36M, merge::SLOT_DURATION};
|
||||
use clap::{
|
||||
builder::{RangedU64ValueParser, TypedValueParser},
|
||||
Arg, Args, Command,
|
||||
@ -17,7 +17,7 @@ pub struct PayloadBuilderArgs {
|
||||
pub extra_data: String,
|
||||
|
||||
/// Target gas limit for built blocks.
|
||||
#[arg(long = "builder.gaslimit", default_value_t = ETHEREUM_BLOCK_GAS_LIMIT_30M, value_name = "GAS_LIMIT")]
|
||||
#[arg(long = "builder.gaslimit", default_value_t = ETHEREUM_BLOCK_GAS_LIMIT_36M, value_name = "GAS_LIMIT")]
|
||||
pub gas_limit: u64,
|
||||
|
||||
/// The interval at which the job should build a new payload after the last.
|
||||
@ -41,7 +41,7 @@ impl Default for PayloadBuilderArgs {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
extra_data: default_extra_data(),
|
||||
gas_limit: ETHEREUM_BLOCK_GAS_LIMIT_30M,
|
||||
gas_limit: ETHEREUM_BLOCK_GAS_LIMIT_36M,
|
||||
interval: Duration::from_secs(1),
|
||||
deadline: SLOT_DURATION,
|
||||
max_payload_tasks: 3,
|
||||
|
||||
Reference in New Issue
Block a user