mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
primitive-traits: use alloy _DURATION constants (#11960)
This commit is contained in:
@ -40,6 +40,7 @@ reth-stages-types.workspace = true
|
||||
alloy-primitives.workspace = true
|
||||
alloy-rpc-types-engine = { workspace = true, features = ["jwt"] }
|
||||
alloy-consensus.workspace = true
|
||||
alloy-eips.workspace = true
|
||||
|
||||
# misc
|
||||
eyre.workspace = true
|
||||
@ -76,18 +77,10 @@ proptest.workspace = true
|
||||
tokio.workspace = true
|
||||
|
||||
[features]
|
||||
optimism = [
|
||||
"reth-primitives/optimism",
|
||||
"reth-db/optimism"
|
||||
]
|
||||
optimism = ["reth-primitives/optimism", "reth-db/optimism"]
|
||||
# Features for vergen to generate correct env vars
|
||||
jemalloc = [
|
||||
"reth-cli-util/jemalloc"
|
||||
]
|
||||
asm-keccak = [
|
||||
"reth-primitives/asm-keccak",
|
||||
"alloy-primitives/asm-keccak"
|
||||
]
|
||||
jemalloc = ["reth-cli-util/jemalloc"]
|
||||
asm-keccak = ["reth-primitives/asm-keccak", "alloy-primitives/asm-keccak"]
|
||||
|
||||
[build-dependencies]
|
||||
vergen = { version = "8.0.0", features = ["build", "cargo", "git", "gitcl"] }
|
||||
|
||||
@ -1,11 +1,12 @@
|
||||
use crate::{cli::config::PayloadBuilderConfig, version::default_extradata};
|
||||
use alloy_consensus::constants::MAXIMUM_EXTRA_DATA_SIZE;
|
||||
use alloy_eips::merge::SLOT_DURATION;
|
||||
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, SLOT_DURATION};
|
||||
use reth_primitives::constants::ETHEREUM_BLOCK_GAS_LIMIT;
|
||||
use std::{borrow::Cow, ffi::OsStr, time::Duration};
|
||||
|
||||
/// Parameters for configuring the Payload Builder
|
||||
|
||||
Reference in New Issue
Block a user