mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat(rpc): add HlBlockPrecompile rpc API
This commit is contained in:
@ -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| {
|
||||
|
||||
Reference in New Issue
Block a user