Skip to content

Commit

Permalink
Optimize migration (#1446)
Browse files Browse the repository at this point in the history
  • Loading branch information
aurexav authored Mar 8, 2024
1 parent f01b4ff commit ee0321d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion runtime/darwinia/src/migration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,14 @@ fn migrate() -> frame_support::weights::Weight {

let mut w = 32;

w += migration::clear_storage_prefix(
b"BridgeKusamaGrandpa",
b"ImportedHeaders",
&[],
Some(100),
None,
)
.backend;
w += migration_helper::PalletCleaner {
name: b"BridgeKusamaGrandpa",
values: &[
Expand All @@ -92,7 +100,8 @@ fn migrate() -> frame_support::weights::Weight {
b"PalletOwner",
b"PalletOperatingMode",
],
maps: &[b"ImportedHashes", b"ImportedHeaders"],
maps: &[b"ImportedHashes"],
// maps: &[b"ImportedHashes", b"ImportedHeaders"],
}
.remove_all();
w += migration_helper::PalletCleaner {
Expand Down

0 comments on commit ee0321d

Please sign in to comment.