mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 05:51:02 +00:00
* Use UpgradeCheckSelector Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * cargo update -p polkadot-primitives Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * cargo update -p sp-io Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
This commit is contained in:
committed by
GitHub
parent
279095fed2
commit
eb15b7e0f9
Generated
+253
-253
File diff suppressed because it is too large
Load Diff
@@ -632,7 +632,7 @@ impl_runtime_apis! {
|
|||||||
|
|
||||||
#[cfg(feature = "try-runtime")]
|
#[cfg(feature = "try-runtime")]
|
||||||
impl frame_try_runtime::TryRuntime<Block> for Runtime {
|
impl frame_try_runtime::TryRuntime<Block> for Runtime {
|
||||||
fn on_runtime_upgrade(checks: bool) -> (Weight, Weight) {
|
fn on_runtime_upgrade(checks: frame_try_runtime::UpgradeCheckSelect) -> (Weight, Weight) {
|
||||||
let weight = Executive::try_runtime_upgrade(checks).unwrap();
|
let weight = Executive::try_runtime_upgrade(checks).unwrap();
|
||||||
(weight, RuntimeBlockWeights::get().max_block)
|
(weight, RuntimeBlockWeights::get().max_block)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -814,7 +814,7 @@ impl_runtime_apis! {
|
|||||||
|
|
||||||
#[cfg(feature = "try-runtime")]
|
#[cfg(feature = "try-runtime")]
|
||||||
impl frame_try_runtime::TryRuntime<Block> for Runtime {
|
impl frame_try_runtime::TryRuntime<Block> for Runtime {
|
||||||
fn on_runtime_upgrade(checks: bool) -> (Weight, Weight) {
|
fn on_runtime_upgrade(checks: frame_try_runtime::UpgradeCheckSelect) -> (Weight, Weight) {
|
||||||
let weight = Executive::try_runtime_upgrade(checks).unwrap();
|
let weight = Executive::try_runtime_upgrade(checks).unwrap();
|
||||||
(weight, RuntimeBlockWeights::get().max_block)
|
(weight, RuntimeBlockWeights::get().max_block)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -812,7 +812,7 @@ impl_runtime_apis! {
|
|||||||
|
|
||||||
#[cfg(feature = "try-runtime")]
|
#[cfg(feature = "try-runtime")]
|
||||||
impl frame_try_runtime::TryRuntime<Block> for Runtime {
|
impl frame_try_runtime::TryRuntime<Block> for Runtime {
|
||||||
fn on_runtime_upgrade(checks: bool) -> (Weight, Weight) {
|
fn on_runtime_upgrade(checks: frame_try_runtime::UpgradeCheckSelect) -> (Weight, Weight) {
|
||||||
let weight = Executive::try_runtime_upgrade(checks).unwrap();
|
let weight = Executive::try_runtime_upgrade(checks).unwrap();
|
||||||
(weight, RuntimeBlockWeights::get().max_block)
|
(weight, RuntimeBlockWeights::get().max_block)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -772,7 +772,7 @@ impl_runtime_apis! {
|
|||||||
|
|
||||||
#[cfg(feature = "try-runtime")]
|
#[cfg(feature = "try-runtime")]
|
||||||
impl frame_try_runtime::TryRuntime<Block> for Runtime {
|
impl frame_try_runtime::TryRuntime<Block> for Runtime {
|
||||||
fn on_runtime_upgrade(checks: bool) -> (Weight, Weight) {
|
fn on_runtime_upgrade(checks: frame_try_runtime::UpgradeCheckSelect) -> (Weight, Weight) {
|
||||||
let weight = Executive::try_runtime_upgrade(checks).unwrap();
|
let weight = Executive::try_runtime_upgrade(checks).unwrap();
|
||||||
(weight, RuntimeBlockWeights::get().max_block)
|
(weight, RuntimeBlockWeights::get().max_block)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -555,7 +555,7 @@ impl_runtime_apis! {
|
|||||||
|
|
||||||
#[cfg(feature = "try-runtime")]
|
#[cfg(feature = "try-runtime")]
|
||||||
impl frame_try_runtime::TryRuntime<Block> for Runtime {
|
impl frame_try_runtime::TryRuntime<Block> for Runtime {
|
||||||
fn on_runtime_upgrade(checks: bool) -> (Weight, Weight) {
|
fn on_runtime_upgrade(checks: frame_try_runtime::UpgradeCheckSelect) -> (Weight, Weight) {
|
||||||
let weight = Executive::try_runtime_upgrade(checks).unwrap();
|
let weight = Executive::try_runtime_upgrade(checks).unwrap();
|
||||||
(weight, RuntimeBlockWeights::get().max_block)
|
(weight, RuntimeBlockWeights::get().max_block)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -583,7 +583,7 @@ impl_runtime_apis! {
|
|||||||
|
|
||||||
#[cfg(feature = "try-runtime")]
|
#[cfg(feature = "try-runtime")]
|
||||||
impl frame_try_runtime::TryRuntime<Block> for Runtime {
|
impl frame_try_runtime::TryRuntime<Block> for Runtime {
|
||||||
fn on_runtime_upgrade(checks: bool) -> (Weight, Weight) {
|
fn on_runtime_upgrade(checks: frame_try_runtime::UpgradeCheckSelect) -> (Weight, Weight) {
|
||||||
let weight = Executive::try_runtime_upgrade(checks).unwrap();
|
let weight = Executive::try_runtime_upgrade(checks).unwrap();
|
||||||
(weight, RuntimeBlockWeights::get().max_block)
|
(weight, RuntimeBlockWeights::get().max_block)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -715,7 +715,7 @@ impl_runtime_apis! {
|
|||||||
|
|
||||||
#[cfg(feature = "try-runtime")]
|
#[cfg(feature = "try-runtime")]
|
||||||
impl frame_try_runtime::TryRuntime<Block> for Runtime {
|
impl frame_try_runtime::TryRuntime<Block> for Runtime {
|
||||||
fn on_runtime_upgrade(checks: bool) -> (Weight, Weight) {
|
fn on_runtime_upgrade(checks: frame_try_runtime::UpgradeCheckSelect) -> (Weight, Weight) {
|
||||||
let weight = Executive::try_runtime_upgrade(checks).unwrap();
|
let weight = Executive::try_runtime_upgrade(checks).unwrap();
|
||||||
(weight, RuntimeBlockWeights::get().max_block)
|
(weight, RuntimeBlockWeights::get().max_block)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -580,7 +580,7 @@ impl_runtime_apis! {
|
|||||||
|
|
||||||
#[cfg(feature = "try-runtime")]
|
#[cfg(feature = "try-runtime")]
|
||||||
impl frame_try_runtime::TryRuntime<Block> for Runtime {
|
impl frame_try_runtime::TryRuntime<Block> for Runtime {
|
||||||
fn on_runtime_upgrade(checks: bool) -> (Weight, Weight) {
|
fn on_runtime_upgrade(checks: frame_try_runtime::UpgradeCheckSelect) -> (Weight, Weight) {
|
||||||
let weight = Executive::try_runtime_upgrade(checks).unwrap();
|
let weight = Executive::try_runtime_upgrade(checks).unwrap();
|
||||||
(weight, RuntimeBlockWeights::get().max_block)
|
(weight, RuntimeBlockWeights::get().max_block)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -697,7 +697,7 @@ impl_runtime_apis! {
|
|||||||
|
|
||||||
#[cfg(feature = "try-runtime")]
|
#[cfg(feature = "try-runtime")]
|
||||||
impl frame_try_runtime::TryRuntime<Block> for Runtime {
|
impl frame_try_runtime::TryRuntime<Block> for Runtime {
|
||||||
fn on_runtime_upgrade(checks: bool) -> (Weight, Weight) {
|
fn on_runtime_upgrade(checks: frame_try_runtime::UpgradeCheckSelect) -> (Weight, Weight) {
|
||||||
let weight = Executive::try_runtime_upgrade(checks).unwrap();
|
let weight = Executive::try_runtime_upgrade(checks).unwrap();
|
||||||
(weight, RuntimeBlockWeights::get().max_block)
|
(weight, RuntimeBlockWeights::get().max_block)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user