mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
@ -1,6 +1,7 @@
|
||||
use clap::Parser;
|
||||
use reth::builder::NodeHandle;
|
||||
use reth_hl::{
|
||||
call_forwarder::{self, CallForwarderApiServer},
|
||||
chainspec::parser::HlChainSpecParser,
|
||||
hl_node_compliance::install_hl_node_compliance,
|
||||
node::{
|
||||
@ -42,6 +43,13 @@ fn main() -> eyre::Result<()> {
|
||||
)?;
|
||||
info!("Transaction will be forwarded to {}", upstream_rpc_url);
|
||||
|
||||
if ext.forward_call {
|
||||
ctx.modules.replace_configured(
|
||||
call_forwarder::CallForwarderExt::new(upstream_rpc_url.clone()).into_rpc(),
|
||||
)?;
|
||||
info!("Call/gas estimation will be forwarded to {}", upstream_rpc_url);
|
||||
}
|
||||
|
||||
if ext.hl_node_compliant {
|
||||
install_hl_node_compliance(ctx)?;
|
||||
info!("hl-node compliant mode enabled");
|
||||
|
||||
Reference in New Issue
Block a user