Skip to content

Commit

Permalink
wait-for-restart-window works again for unstaked nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
mvines authored and mergify[bot] committed Apr 4, 2021
1 parent 0596cf5 commit a679aeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion validator/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a679aeb

Please sign in to comment.