Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Merge remote-tracking branch 'origin/master' into andre/babe-skip-epochs
  • Loading branch information
bkchr committed Dec 23, 2022
commit ffcc1b5dae16f3a5cfeb48cff9caf8b05aa321ca
6 changes: 6 additions & 0 deletions frame/babe/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -582,6 +582,12 @@ impl<T: Config> Pallet<T> {
// by the session module to be called before this.
debug_assert!(Self::initialized().is_some());

if authorities.is_empty() {
log::warn!(target: LOG_TARGET, "Ignoring empty epoch change.");

return
}

// Update epoch index.
//
// NOTE: we figure out the epoch index from the slot, which may not
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.