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

Commit

Permalink
Add BSC Migration (#1344)
Browse files Browse the repository at this point in the history
  • Loading branch information
AurevoirXavier authored Jul 18, 2022
1 parent c5677c9 commit 4fa2a79
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions node/runtime/pangoro/src/migrations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 4fa2a79

Please sign in to comment.