mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-30 01:28:21 -05:00
node: don't subscribe to consensus health events for dev node (#6868)
Signed-off-by: jsvisa <delweng@gmail.com>
This commit is contained in:
@@ -372,7 +372,7 @@ impl<DB: Database + DatabaseMetrics + DatabaseMetadata + 'static> 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),
|
||||
|
||||
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user