chore: use BlockNumHash in exex (#14015)

This commit is contained in:
Matthias Seitz
2025-01-28 11:24:29 +01:00
committed by GitHub
parent 83a9b08ad7
commit d709c8a0d2
6 changed files with 39 additions and 56 deletions

View File

@ -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