mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore(rpc): only forward calls to upstream if against latest block state
This commit is contained in:
@ -45,7 +45,11 @@ fn main() -> eyre::Result<()> {
|
||||
|
||||
if ext.forward_call {
|
||||
ctx.modules.replace_configured(
|
||||
call_forwarder::CallForwarderExt::new(upstream_rpc_url.clone()).into_rpc(),
|
||||
call_forwarder::CallForwarderExt::new(
|
||||
upstream_rpc_url.clone(),
|
||||
ctx.registry.eth_api().clone(),
|
||||
)
|
||||
.into_rpc(),
|
||||
)?;
|
||||
info!("Call/gas estimation will be forwarded to {}", upstream_rpc_url);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user