Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Runtime Weights #129

Merged
10 changes: 5 additions & 5 deletions relay/kusama/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ pub struct OriginPrivilegeCmp;
impl PrivilegeCmp<OriginCaller> for OriginPrivilegeCmp {
fn cmp_privilege(left: &OriginCaller, right: &OriginCaller) -> Option<Ordering> {
if left == right {
return Some(Ordering::Equal)
return Some(Ordering::Equal);
ggwpez marked this conversation as resolved.
Show resolved Hide resolved
}

match (left, right) {
Expand Down Expand Up @@ -327,7 +327,7 @@ impl pallet_balances::Config for Runtime {
type MaxLocks = MaxLocks;
type MaxReserves = MaxReserves;
type ReserveIdentifier = [u8; 8];
type WeightInfo = weights::pallet_balances::WeightInfo<Runtime>;
type WeightInfo = weights::pallet_balances_balances::WeightInfo<Runtime>;
type FreezeIdentifier = RuntimeFreezeReason;
type MaxFreezes = ConstU32<8>;
type RuntimeHoldReason = RuntimeHoldReason;
Expand Down Expand Up @@ -2598,7 +2598,7 @@ mod remote_tests {
#[tokio::test]
async fn run_migrations() {
if var("RUN_MIGRATION_TESTS").is_err() {
return
return;
ggwpez marked this conversation as resolved.
Show resolved Hide resolved
}

sp_tracing::try_init_simple();
Expand Down Expand Up @@ -2675,12 +2675,12 @@ mod init_state_migration {
fn on_runtime_upgrade() -> frame_support::weights::Weight {
if AutoLimits::<Runtime>::get().is_some() {
log::warn!("Automatic trie migration already started, not proceeding.");
return <Runtime as frame_system::Config>::DbWeight::get().reads(1)
return <Runtime as frame_system::Config>::DbWeight::get().reads(1);
ggwpez marked this conversation as resolved.
Show resolved Hide resolved
};

if MigrationProcess::<Runtime>::get() != Default::default() {
log::warn!("MigrationProcess is not Default. Not proceeding.");
return <Runtime as frame_system::Config>::DbWeight::get().reads(2)
return <Runtime as frame_system::Config>::DbWeight::get().reads(2);
ggwpez marked this conversation as resolved.
Show resolved Hide resolved
};

// Migration is not already running and `MigraitonProcess` is Default. Ready to run
Expand Down
54 changes: 30 additions & 24 deletions relay/kusama/src/weights/frame_benchmarking_baseline.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

50 changes: 28 additions & 22 deletions relay/kusama/src/weights/frame_election_provider_support.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

76 changes: 41 additions & 35 deletions relay/kusama/src/weights/frame_system.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading