feat(rpc): add HlBlockPrecompile rpc API

This commit is contained in:
Quertyy
2025-09-18 04:57:49 +07:00
parent 491e902904
commit 1c7136bfab
3 changed files with 50 additions and 0 deletions

View File

@ -12,6 +12,7 @@ use reth_hl::{
chainspec::{parser::HlChainSpecParser, HlChainSpec},
node::{
cli::{Cli, HlNodeArgs},
rpc::precompile::{HlBlockPrecompileApiServer, HlBlockPrecompileExt},
storage::tables::Tables,
HlNode,
},
@ -72,6 +73,10 @@ fn main() -> eyre::Result<()> {
info!("eth_getProof is disabled by default");
}
ctx.modules.merge_configured(
HlBlockPrecompileExt::new(ctx.registry.eth_api().clone()).into_rpc(),
)?;
Ok(())
})
.apply(|builder| {