Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
grandpa: migration off-by-one
Browse files Browse the repository at this point in the history
  • Loading branch information
andresilva committed Jan 25, 2023
1 parent 5b07212 commit b32203e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frame/grandpa/src/migrations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ fn cleanup_set_id_sesion_map<T: Config>() -> Weight {
let until_set_id =
CurrentSetId::<T>::get().saturating_sub(T::MaxSetIdSessionEntries::get() as u64);

for set_id in 0..until_set_id {
for set_id in 0..=until_set_id {
SetIdSession::<T>::remove(set_id);
}

Expand Down

0 comments on commit b32203e

Please sign in to comment.