mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: rm reth-interfaces from payload basic (#8450)
This commit is contained in:
1
Cargo.lock
generated
1
Cargo.lock
generated
@ -6509,7 +6509,6 @@ dependencies = [
|
|||||||
"futures-util",
|
"futures-util",
|
||||||
"metrics",
|
"metrics",
|
||||||
"reth-engine-primitives",
|
"reth-engine-primitives",
|
||||||
"reth-interfaces",
|
|
||||||
"reth-metrics",
|
"reth-metrics",
|
||||||
"reth-payload-builder",
|
"reth-payload-builder",
|
||||||
"reth-primitives",
|
"reth-primitives",
|
||||||
|
|||||||
@ -19,7 +19,6 @@ reth-transaction-pool.workspace = true
|
|||||||
reth-provider.workspace = true
|
reth-provider.workspace = true
|
||||||
reth-payload-builder.workspace = true
|
reth-payload-builder.workspace = true
|
||||||
reth-tasks.workspace = true
|
reth-tasks.workspace = true
|
||||||
reth-interfaces.workspace = true
|
|
||||||
reth-engine-primitives.workspace = true
|
reth-engine-primitives.workspace = true
|
||||||
|
|
||||||
# ethereum
|
# ethereum
|
||||||
|
|||||||
@ -12,7 +12,6 @@ use crate::metrics::PayloadBuilderMetrics;
|
|||||||
use futures_core::ready;
|
use futures_core::ready;
|
||||||
use futures_util::FutureExt;
|
use futures_util::FutureExt;
|
||||||
use reth_engine_primitives::{BuiltPayload, PayloadBuilderAttributes};
|
use reth_engine_primitives::{BuiltPayload, PayloadBuilderAttributes};
|
||||||
use reth_interfaces::RethResult;
|
|
||||||
use reth_payload_builder::{
|
use reth_payload_builder::{
|
||||||
database::CachedReads, error::PayloadBuilderError, KeepPayloadJobAlive, PayloadId, PayloadJob,
|
database::CachedReads, error::PayloadBuilderError, KeepPayloadJobAlive, PayloadId, PayloadJob,
|
||||||
PayloadJobGenerator,
|
PayloadJobGenerator,
|
||||||
@ -823,7 +822,7 @@ pub fn commit_withdrawals<DB: Database<Error = ProviderError>>(
|
|||||||
chain_spec: &ChainSpec,
|
chain_spec: &ChainSpec,
|
||||||
timestamp: u64,
|
timestamp: u64,
|
||||||
withdrawals: Withdrawals,
|
withdrawals: Withdrawals,
|
||||||
) -> RethResult<WithdrawalsOutcome> {
|
) -> Result<WithdrawalsOutcome, DB::Error> {
|
||||||
if !chain_spec.is_shanghai_active_at_timestamp(timestamp) {
|
if !chain_spec.is_shanghai_active_at_timestamp(timestamp) {
|
||||||
return Ok(WithdrawalsOutcome::pre_shanghai())
|
return Ok(WithdrawalsOutcome::pre_shanghai())
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user