chore: relax server impl (#20141)

This commit is contained in:
Matthias Seitz
2025-12-05 16:21:58 +01:00
committed by GitHub
parent 9712fe56e5
commit 190297083a

View File

@@ -1,6 +1,6 @@
//! Loads chain configuration.
use alloy_consensus::{BlockHeader, Header};
use alloy_consensus::BlockHeader;
use alloy_eips::{
eip7840::BlobParams,
eip7910::{EthConfig, EthForkConfig, SystemContract},
@@ -155,9 +155,9 @@ where
impl<Provider, Evm> EthConfigApiServer for EthConfigHandler<Provider, Evm>
where
Provider: ChainSpecProvider<ChainSpec: Hardforks + EthereumHardforks>
+ BlockReaderIdExt<Header = Header>
+ BlockReaderIdExt<Header: HeaderMut>
+ 'static,
Evm: ConfigureEvm<Primitives: NodePrimitives<BlockHeader = Header>> + 'static,
Evm: ConfigureEvm<Primitives: NodePrimitives<BlockHeader = Provider::Header>> + 'static,
{
fn config(&self) -> RpcResult<EthConfig> {
Ok(self.config().map_err(EthApiError::from)?)