wait-for-restart-window works again for unstaked nodes

(cherry picked from commit a679aebc82)
This commit is contained in:
Michael Vines
2021-04-04 08:09:19 -07:00
parent 581181e87f
commit f1bc7ec4fa

View File

@ -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