From 7927a8b995e3920b885c5f8b45a5b6ffdcff1c34 Mon Sep 17 00:00:00 2001 From: Justin Starry Date: Tue, 5 Aug 2025 06:18:37 +0000 Subject: [PATCH] initialize cluster slots with the current root bank --- core/src/cluster_slots_service.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/src/cluster_slots_service.rs b/core/src/cluster_slots_service.rs index a103b4036f0a9f..f7ed09ee8b699e 100644 --- a/core/src/cluster_slots_service.rs +++ b/core/src/cluster_slots_service.rs @@ -83,6 +83,11 @@ impl ClusterSlotsService { let mut cluster_slots_service_timing = ClusterSlotsServiceTiming::default(); let mut last_stats = Instant::now(); let mut epoch_specs = EpochSpecs::from(bank_forks.clone()); + + // initialize cluster slots with the current root bank + let root_bank = bank_forks.read().unwrap().root_bank(); + cluster_slots.update(&root_bank, &cluster_info); + while !exit.load(Ordering::Relaxed) { let slots = match cluster_slots_update_receiver.recv_timeout(Duration::from_millis(200)) {