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

This commit is contained in:
Michael Vines 2021-04-04 08:09:19 -07:00 committed by mergify[bot]
parent 0596cf5405
commit a679aebc82
1 changed files with 1 additions and 1 deletions

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