From b32203ecaff147ee24e842d212401fe12415c80d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Silva?= Date: Wed, 25 Jan 2023 00:22:59 +0000 Subject: [PATCH] grandpa: migration off-by-one --- frame/grandpa/src/migrations.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frame/grandpa/src/migrations.rs b/frame/grandpa/src/migrations.rs index ab2e3c1b085a3..8a7a06699450a 100644 --- a/frame/grandpa/src/migrations.rs +++ b/frame/grandpa/src/migrations.rs @@ -56,7 +56,7 @@ fn cleanup_set_id_sesion_map() -> Weight { let until_set_id = CurrentSetId::::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::::remove(set_id); }