primitives: use alloy MAXIMUM_EXTRA_DATA_SIZE constant (#11881)

This commit is contained in:
Thomas Coratger
2024-10-19 10:28:10 +02:00
committed by GitHub
parent a6daafc6a4
commit 2f559c62bf
7 changed files with 9 additions and 15 deletions

View File

@ -39,6 +39,7 @@ reth-stages-types.workspace = true
# ethereum
alloy-primitives.workspace = true
alloy-rpc-types-engine = { workspace = true, features = ["jwt"] }
alloy-consensus.workspace = true
# misc
eyre.workspace = true
@ -76,9 +77,7 @@ tokio.workspace = true
tempfile.workspace = true
[features]
optimism = [
"reth-primitives/optimism"
]
optimism = ["reth-primitives/optimism"]
# Features for vergen to generate correct env vars
jemalloc = []
asm-keccak = []

View File

@ -1,12 +1,11 @@
use crate::{cli::config::PayloadBuilderConfig, version::default_extradata};
use alloy_consensus::constants::MAXIMUM_EXTRA_DATA_SIZE;
use clap::{
builder::{RangedU64ValueParser, TypedValueParser},
Arg, Args, Command,
};
use reth_cli_util::{parse_duration_from_secs, parse_duration_from_secs_or_ms};
use reth_primitives::constants::{
ETHEREUM_BLOCK_GAS_LIMIT, MAXIMUM_EXTRA_DATA_SIZE, SLOT_DURATION,
};
use reth_primitives::constants::{ETHEREUM_BLOCK_GAS_LIMIT, SLOT_DURATION};
use std::{borrow::Cow, ffi::OsStr, time::Duration};
/// Parameters for configuring the Payload Builder