mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 12:51:02 +00:00
* Enable correct features Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Feature gate function The expose_db function is currently feature gated with runtime-benchmarks. After the related Substrate MR, this feature gate will actually *work* as intended instead of doing nothing. BUT then we also have to pass through the correct feature, hence this MR. Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * update lockfile for {"substrate"} * Fix bench features Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * fix more features Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Co-authored-by: parity-processbot <>
This commit is contained in:
committed by
GitHub
parent
023ebe778a
commit
74c00bad59
Generated
+211
-190
File diff suppressed because it is too large
Load Diff
@@ -512,6 +512,15 @@ pub fn run() -> Result<()> {
|
|||||||
let chain_spec = &runner.config().chain_spec;
|
let chain_spec = &runner.config().chain_spec;
|
||||||
|
|
||||||
match cmd {
|
match cmd {
|
||||||
|
#[cfg(not(feature = "runtime-benchmarks"))]
|
||||||
|
BenchmarkCmd::Storage(_) =>
|
||||||
|
return Err(sc_cli::Error::Input(
|
||||||
|
"Compile with --features=runtime-benchmarks \
|
||||||
|
to enable storage benchmarks."
|
||||||
|
.into(),
|
||||||
|
)
|
||||||
|
.into()),
|
||||||
|
#[cfg(feature = "runtime-benchmarks")]
|
||||||
BenchmarkCmd::Storage(cmd) => runner.sync_run(|mut config| {
|
BenchmarkCmd::Storage(cmd) => runner.sync_run(|mut config| {
|
||||||
let (client, backend, _, _) = service::new_chain_ops(&mut config, None)?;
|
let (client, backend, _, _) = service::new_chain_ops(&mut config, None)?;
|
||||||
let db = backend.expose_db();
|
let db = backend.expose_db();
|
||||||
|
|||||||
@@ -178,7 +178,9 @@ runtime-benchmarks = [
|
|||||||
"polkadot-runtime?/runtime-benchmarks",
|
"polkadot-runtime?/runtime-benchmarks",
|
||||||
"kusama-runtime?/runtime-benchmarks",
|
"kusama-runtime?/runtime-benchmarks",
|
||||||
"westend-runtime?/runtime-benchmarks",
|
"westend-runtime?/runtime-benchmarks",
|
||||||
"rococo-runtime?/runtime-benchmarks"
|
"rococo-runtime?/runtime-benchmarks",
|
||||||
|
|
||||||
|
"service/runtime-benchmarks",
|
||||||
]
|
]
|
||||||
try-runtime = [
|
try-runtime = [
|
||||||
"polkadot-runtime?/try-runtime",
|
"polkadot-runtime?/try-runtime",
|
||||||
|
|||||||
@@ -108,6 +108,7 @@ runtime-benchmarks = [
|
|||||||
"frame-system/runtime-benchmarks",
|
"frame-system/runtime-benchmarks",
|
||||||
"runtime-parachains/runtime-benchmarks",
|
"runtime-parachains/runtime-benchmarks",
|
||||||
"pallet-babe/runtime-benchmarks",
|
"pallet-babe/runtime-benchmarks",
|
||||||
|
"pallet-bags-list/runtime-benchmarks",
|
||||||
]
|
]
|
||||||
try-runtime = [
|
try-runtime = [
|
||||||
"runtime-parachains/try-runtime",
|
"runtime-parachains/try-runtime",
|
||||||
|
|||||||
@@ -214,7 +214,7 @@ runtime-benchmarks = [
|
|||||||
"pallet-membership/runtime-benchmarks",
|
"pallet-membership/runtime-benchmarks",
|
||||||
"pallet-multisig/runtime-benchmarks",
|
"pallet-multisig/runtime-benchmarks",
|
||||||
"pallet-nomination-pools/runtime-benchmarks",
|
"pallet-nomination-pools/runtime-benchmarks",
|
||||||
"pallet-nomination-pools-benchmarking",
|
"pallet-nomination-pools-benchmarking/runtime-benchmarks",
|
||||||
"pallet-preimage/runtime-benchmarks",
|
"pallet-preimage/runtime-benchmarks",
|
||||||
"pallet-proxy/runtime-benchmarks",
|
"pallet-proxy/runtime-benchmarks",
|
||||||
"pallet-scheduler/runtime-benchmarks",
|
"pallet-scheduler/runtime-benchmarks",
|
||||||
@@ -226,16 +226,16 @@ runtime-benchmarks = [
|
|||||||
"pallet-treasury/runtime-benchmarks",
|
"pallet-treasury/runtime-benchmarks",
|
||||||
"pallet-utility/runtime-benchmarks",
|
"pallet-utility/runtime-benchmarks",
|
||||||
"pallet-vesting/runtime-benchmarks",
|
"pallet-vesting/runtime-benchmarks",
|
||||||
"pallet-offences-benchmarking",
|
"pallet-offences-benchmarking/runtime-benchmarks",
|
||||||
"pallet-session-benchmarking",
|
"pallet-session-benchmarking/runtime-benchmarks",
|
||||||
"pallet-xcm/runtime-benchmarks",
|
"pallet-xcm/runtime-benchmarks",
|
||||||
"frame-system-benchmarking",
|
"frame-system-benchmarking/runtime-benchmarks",
|
||||||
"hex-literal",
|
"hex-literal",
|
||||||
"xcm-builder/runtime-benchmarks",
|
"xcm-builder/runtime-benchmarks",
|
||||||
"frame-election-provider-support/runtime-benchmarks",
|
"frame-election-provider-support/runtime-benchmarks",
|
||||||
"pallet-bags-list/runtime-benchmarks",
|
"pallet-bags-list/runtime-benchmarks",
|
||||||
"runtime-parachains/runtime-benchmarks",
|
"runtime-parachains/runtime-benchmarks",
|
||||||
"pallet-xcm-benchmarks",
|
"pallet-xcm-benchmarks/runtime-benchmarks",
|
||||||
]
|
]
|
||||||
try-runtime = [
|
try-runtime = [
|
||||||
"frame-executive/try-runtime",
|
"frame-executive/try-runtime",
|
||||||
|
|||||||
@@ -201,7 +201,7 @@ runtime-benchmarks = [
|
|||||||
"pallet-membership/runtime-benchmarks",
|
"pallet-membership/runtime-benchmarks",
|
||||||
"pallet-multisig/runtime-benchmarks",
|
"pallet-multisig/runtime-benchmarks",
|
||||||
"pallet-nomination-pools/runtime-benchmarks",
|
"pallet-nomination-pools/runtime-benchmarks",
|
||||||
"pallet-nomination-pools-benchmarking",
|
"pallet-nomination-pools-benchmarking/runtime-benchmarks",
|
||||||
"pallet-preimage/runtime-benchmarks",
|
"pallet-preimage/runtime-benchmarks",
|
||||||
"pallet-proxy/runtime-benchmarks",
|
"pallet-proxy/runtime-benchmarks",
|
||||||
"pallet-scheduler/runtime-benchmarks",
|
"pallet-scheduler/runtime-benchmarks",
|
||||||
@@ -214,9 +214,9 @@ runtime-benchmarks = [
|
|||||||
"pallet-utility/runtime-benchmarks",
|
"pallet-utility/runtime-benchmarks",
|
||||||
"pallet-vesting/runtime-benchmarks",
|
"pallet-vesting/runtime-benchmarks",
|
||||||
"pallet-xcm/runtime-benchmarks",
|
"pallet-xcm/runtime-benchmarks",
|
||||||
"pallet-offences-benchmarking",
|
"pallet-offences-benchmarking/runtime-benchmarks",
|
||||||
"pallet-session-benchmarking",
|
"pallet-session-benchmarking/runtime-benchmarks",
|
||||||
"frame-system-benchmarking",
|
"frame-system-benchmarking/runtime-benchmarks",
|
||||||
"hex-literal",
|
"hex-literal",
|
||||||
"xcm-builder/runtime-benchmarks",
|
"xcm-builder/runtime-benchmarks",
|
||||||
"frame-election-provider-support/runtime-benchmarks",
|
"frame-election-provider-support/runtime-benchmarks",
|
||||||
|
|||||||
@@ -175,6 +175,7 @@ std = [
|
|||||||
]
|
]
|
||||||
runtime-benchmarks = [
|
runtime-benchmarks = [
|
||||||
"runtime-common/runtime-benchmarks",
|
"runtime-common/runtime-benchmarks",
|
||||||
|
"frame-system/runtime-benchmarks",
|
||||||
"frame-benchmarking/runtime-benchmarks",
|
"frame-benchmarking/runtime-benchmarks",
|
||||||
"frame-support/runtime-benchmarks",
|
"frame-support/runtime-benchmarks",
|
||||||
"frame-system/runtime-benchmarks",
|
"frame-system/runtime-benchmarks",
|
||||||
@@ -205,11 +206,11 @@ runtime-benchmarks = [
|
|||||||
"pallet-utility/runtime-benchmarks",
|
"pallet-utility/runtime-benchmarks",
|
||||||
"pallet-vesting/runtime-benchmarks",
|
"pallet-vesting/runtime-benchmarks",
|
||||||
"pallet-xcm/runtime-benchmarks",
|
"pallet-xcm/runtime-benchmarks",
|
||||||
"frame-system-benchmarking",
|
"frame-system-benchmarking/runtime-benchmarks",
|
||||||
"hex-literal",
|
"hex-literal",
|
||||||
"xcm-builder/runtime-benchmarks",
|
"xcm-builder/runtime-benchmarks",
|
||||||
"runtime-parachains/runtime-benchmarks",
|
"runtime-parachains/runtime-benchmarks",
|
||||||
"pallet-xcm-benchmarks",
|
"pallet-xcm-benchmarks/runtime-benchmarks",
|
||||||
]
|
]
|
||||||
try-runtime = [
|
try-runtime = [
|
||||||
"frame-executive/try-runtime",
|
"frame-executive/try-runtime",
|
||||||
|
|||||||
@@ -201,7 +201,7 @@ runtime-benchmarks = [
|
|||||||
"pallet-im-online/runtime-benchmarks",
|
"pallet-im-online/runtime-benchmarks",
|
||||||
"pallet-indices/runtime-benchmarks",
|
"pallet-indices/runtime-benchmarks",
|
||||||
"pallet-multisig/runtime-benchmarks",
|
"pallet-multisig/runtime-benchmarks",
|
||||||
"pallet-nomination-pools-benchmarking",
|
"pallet-nomination-pools-benchmarking/runtime-benchmarks",
|
||||||
"pallet-preimage/runtime-benchmarks",
|
"pallet-preimage/runtime-benchmarks",
|
||||||
"pallet-proxy/runtime-benchmarks",
|
"pallet-proxy/runtime-benchmarks",
|
||||||
"pallet-recovery/runtime-benchmarks",
|
"pallet-recovery/runtime-benchmarks",
|
||||||
@@ -212,13 +212,13 @@ runtime-benchmarks = [
|
|||||||
"pallet-treasury/runtime-benchmarks",
|
"pallet-treasury/runtime-benchmarks",
|
||||||
"pallet-utility/runtime-benchmarks",
|
"pallet-utility/runtime-benchmarks",
|
||||||
"pallet-vesting/runtime-benchmarks",
|
"pallet-vesting/runtime-benchmarks",
|
||||||
"pallet-offences-benchmarking",
|
"pallet-offences-benchmarking/runtime-benchmarks",
|
||||||
"pallet-session-benchmarking",
|
"pallet-session-benchmarking/runtime-benchmarks",
|
||||||
"pallet-xcm/runtime-benchmarks",
|
"pallet-xcm/runtime-benchmarks",
|
||||||
"frame-system-benchmarking",
|
"frame-system-benchmarking/runtime-benchmarks",
|
||||||
"hex-literal",
|
"hex-literal",
|
||||||
"xcm-builder/runtime-benchmarks",
|
"xcm-builder/runtime-benchmarks",
|
||||||
"pallet-xcm-benchmarks",
|
"pallet-xcm-benchmarks/runtime-benchmarks",
|
||||||
"frame-election-provider-support/runtime-benchmarks",
|
"frame-election-provider-support/runtime-benchmarks",
|
||||||
"pallet-bags-list/runtime-benchmarks",
|
"pallet-bags-list/runtime-benchmarks",
|
||||||
"runtime-parachains/runtime-benchmarks",
|
"runtime-parachains/runtime-benchmarks",
|
||||||
|
|||||||
@@ -43,3 +43,8 @@ std = [
|
|||||||
"sp-runtime/std",
|
"sp-runtime/std",
|
||||||
"sp-std/std"
|
"sp-std/std"
|
||||||
]
|
]
|
||||||
|
runtime-benchmarks = [
|
||||||
|
"frame-benchmarking/runtime-benchmarks",
|
||||||
|
"frame-support/runtime-benchmarks",
|
||||||
|
"frame-system/runtime-benchmarks",
|
||||||
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user