From 4fa2a7966c0de31e776db1c69c97a5a9d180cc66 Mon Sep 17 00:00:00 2001 From: Xavier Lau Date: Mon, 18 Jul 2022 23:17:04 +0800 Subject: [PATCH] Add BSC Migration (#1344) --- node/runtime/pangoro/src/migrations.rs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/node/runtime/pangoro/src/migrations.rs b/node/runtime/pangoro/src/migrations.rs index ce373ec79a..00edf27de5 100644 --- a/node/runtime/pangoro/src/migrations.rs +++ b/node/runtime/pangoro/src/migrations.rs @@ -23,6 +23,13 @@ impl OnRuntimeUpgrade for CustomOnRuntimeUpgrade { } fn migrate() -> Weight { - // RuntimeBlockWeights::get().max_block - 0 + let module = b"Bsc"; + + migration::remove_storage_prefix(module, b"FinalizedAuthorities", &[]); + migration::remove_storage_prefix(module, b"FinalizedCheckpoint", &[]); + migration::remove_storage_prefix(module, b"Authorities", &[]); + migration::remove_storage_prefix(module, b"AuthoritiesOfRound", &[]); + + RuntimeBlockWeights::get().max_block + // 0 }