From f1bc7ec4facbc5e2964728c247524d3887879c51 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Sun, 4 Apr 2021 08:09:19 -0700 Subject: [PATCH] wait-for-restart-window works again for unstaked nodes (cherry picked from commit a679aebc821a5c26b9a5263a7275154882f9dfc0) --- validator/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/validator/src/main.rs b/validator/src/main.rs index afb57cc40e..00128a5460 100644 --- a/validator/src/main.rs +++ b/validator/src/main.rs @@ -184,7 +184,7 @@ fn wait_for_restart_window( } idle_window_start_slot = next_leader_slot; } - if upcoming_idle_windows.is_empty() { + if !leader_schedule.is_empty() && upcoming_idle_windows.is_empty() { return Err(format!( "Validator has no idle window of at least {} slots. Largest idle window for epoch {} is {} slots", min_idle_slots, epoch_info.epoch, max_idle_window