mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: use BlockNumHash in exex (#14015)
This commit is contained in:
@ -1,7 +1,6 @@
|
||||
//! Support for launching execution extensions.
|
||||
|
||||
use std::{fmt, fmt::Debug};
|
||||
|
||||
use alloy_eips::BlockNumHash;
|
||||
use futures::future;
|
||||
use reth_chain_state::ForkChoiceSubscriptions;
|
||||
use reth_chainspec::EthChainSpec;
|
||||
@ -13,6 +12,7 @@ use reth_node_api::{FullNodeComponents, NodeTypes, PrimitivesTy};
|
||||
use reth_primitives::Head;
|
||||
use reth_provider::CanonStateSubscriptions;
|
||||
use reth_tracing::tracing::{debug, info};
|
||||
use std::{fmt, fmt::Debug};
|
||||
use tracing::Instrument;
|
||||
|
||||
use crate::{common::WithConfigs, exex::BoxedLaunchExEx};
|
||||
@ -44,6 +44,7 @@ impl<Node: FullNodeComponents + Clone> ExExLauncher<Node> {
|
||||
self,
|
||||
) -> eyre::Result<Option<ExExManagerHandle<PrimitivesTy<Node::Types>>>> {
|
||||
let Self { head, extensions, components, config_container } = self;
|
||||
let head = BlockNumHash::new(head.number, head.hash);
|
||||
|
||||
if extensions.is_empty() {
|
||||
// nothing to launch
|
||||
|
||||
Reference in New Issue
Block a user