feat: Add --hl-node-compliant

This commit is contained in:
sprites0
2025-07-04 23:19:32 +00:00
parent 77320a2b03
commit 7918101d65
4 changed files with 40 additions and 6 deletions

View File

@ -250,9 +250,18 @@ where
}
/// Builds [`HlEthApi`] for HL.
#[derive(Debug, Default)]
#[derive(Debug)]
#[non_exhaustive]
pub struct HlEthApiBuilder;
pub struct HlEthApiBuilder {
/// Whether the node is in HL node compliant mode.
pub(crate) hl_node_compliant: bool,
}
impl Default for HlEthApiBuilder {
fn default() -> Self {
Self { hl_node_compliant: false }
}
}
impl<N> EthApiBuilder<N> for HlEthApiBuilder
where
@ -280,6 +289,7 @@ where
Ok(HlEthApi {
inner: Arc::new(HlEthApiInner { eth_api }),
tx_resp_builder: Default::default(),
hl_node_compliant: self.hl_node_compliant,
})
}
}