From 2eb2a0c253674ada183ed20d43921dcd7aadd7f3 Mon Sep 17 00:00:00 2001 From: Delweng Date: Thu, 29 Feb 2024 18:36:11 +0800 Subject: [PATCH] node: don't subscribe to consensus health events for dev node (#6868) Signed-off-by: jsvisa --- bin/reth/src/builder.rs | 2 +- crates/node-builder/src/builder.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/reth/src/builder.rs b/bin/reth/src/builder.rs index 41458ac8f6..dc75a679c1 100644 --- a/bin/reth/src/builder.rs +++ b/bin/reth/src/builder.rs @@ -372,7 +372,7 @@ impl NodeBuilderWit network.event_listener().map(Into::into), beacon_engine_handle.event_listener().map(Into::into), pipeline_events.map(Into::into), - if self.config.debug.tip.is_none() { + if self.config.debug.tip.is_none() && !self.config.dev.dev { Either::Left( ConsensusLayerHealthEvents::new(Box::new(blockchain_db.clone())) .map(Into::into), diff --git a/crates/node-builder/src/builder.rs b/crates/node-builder/src/builder.rs index 45e074c37b..d7ce7fddf4 100644 --- a/crates/node-builder/src/builder.rs +++ b/crates/node-builder/src/builder.rs @@ -541,7 +541,7 @@ where network.event_listener().map(Into::into), beacon_engine_handle.event_listener().map(Into::into), pipeline_events.map(Into::into), - if config.debug.tip.is_none() { + if config.debug.tip.is_none() && !config.dev.dev { Either::Left( ConsensusLayerHealthEvents::new(Box::new(blockchain_db.clone())) .map(Into::into),