From 2c4b8b7f39f362c83cbacfc6d39e244f70276fea Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Thu, 5 Oct 2023 12:45:43 +0200 Subject: [PATCH] fix: delegate all calls (#4915) --- bin/reth/src/cli/ext.rs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/bin/reth/src/cli/ext.rs b/bin/reth/src/cli/ext.rs index ef2d52b654..eea3695e2e 100644 --- a/bin/reth/src/cli/ext.rs +++ b/bin/reth/src/cli/ext.rs @@ -173,6 +173,25 @@ impl NoArgs { } impl RethNodeCommandConfig for NoArgs { + fn on_components_initialized( + &mut self, + components: &Reth, + ) -> eyre::Result<()> { + if let Some(conf) = self.inner_mut() { + conf.on_components_initialized(components) + } else { + Ok(()) + } + } + + fn on_node_started(&mut self, components: &Reth) -> eyre::Result<()> { + if let Some(conf) = self.inner_mut() { + conf.on_node_started(components) + } else { + Ok(()) + } + } + fn extend_rpc_modules( &mut self, config: &Conf,