Companion for Substrate#14511 (#7459)

* Companion for Substrate#14511

https://github.com/paritytech/substrate/pull/14511

* Make benchmarking build without any native runtime

* Fix warning

* update lockfile for {"substrate"}

---------

Co-authored-by: parity-processbot <>
This commit is contained in:
Bastian Köcher
2023-07-05 10:08:09 +02:00
committed by GitHub
parent a37a5e47dc
commit a40417da96
7 changed files with 387 additions and 275 deletions
@@ -17,7 +17,7 @@
//! Polkadot CLI library.
use clap::Parser;
use sc_cli::{RuntimeVersion, SubstrateCli};
use sc_cli::SubstrateCli;
/// Sub-commands supported by the collator.
#[derive(Debug, Parser)]
@@ -105,10 +105,4 @@ impl SubstrateCli for Cli {
},
})
}
fn native_runtime_version(
_spec: &Box<dyn polkadot_service::ChainSpec>,
) -> &'static RuntimeVersion {
&polkadot_service::rococo_runtime::VERSION
}
}
@@ -17,7 +17,7 @@
//! Polkadot CLI library.
use clap::Parser;
use sc_cli::{RuntimeVersion, SubstrateCli};
use sc_cli::SubstrateCli;
/// Sub-commands supported by the collator.
#[derive(Debug, Parser)]
@@ -127,10 +127,4 @@ impl SubstrateCli for Cli {
},
})
}
fn native_runtime_version(
_spec: &Box<dyn polkadot_service::ChainSpec>,
) -> &'static RuntimeVersion {
&polkadot_service::rococo_runtime::VERSION
}
}