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 to 0.9.29 #754

Merged
merged 11 commits into from
Nov 24, 2022
Merged
Prev Previous commit
whitespaces
  • Loading branch information
kostekIV committed Nov 24, 2022
commit 7445c9af172b2838faac643fd83931cc83df24bc
24 changes: 12 additions & 12 deletions bin/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -957,20 +957,20 @@ impl_runtime_apis! {
}

#[cfg(feature = "try-runtime")]
impl frame_try_runtime::TryRuntime<Block> for Runtime {
fn on_runtime_upgrade() -> (Weight, Weight) {
let weight = Executive::try_runtime_upgrade().unwrap();
(weight, BlockWeights::get().max_block)
}

fn execute_block(
block: Block,
state_root_check: bool,
select: frame_try_runtime::TryStateSelect
) -> Weight {
impl frame_try_runtime::TryRuntime<Block> for Runtime {
fn on_runtime_upgrade() -> (Weight, Weight) {
let weight = Executive::try_runtime_upgrade().unwrap();
(weight, BlockWeights::get().max_block)
}

fn execute_block(
block: Block,
state_root_check: bool,
select: frame_try_runtime::TryStateSelect
) -> Weight {
Executive::try_execute_block(block, state_root_check, select).unwrap()
}
}
}
}

#[cfg(test)]
Expand Down