diff --git a/Cargo.lock b/Cargo.lock index c03e12e8..748379e4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -9729,6 +9729,7 @@ dependencies = [ "clap", "color-print", "cumulus-client-cli", + "cumulus-client-service", "cumulus-primitives-core", "dev-runtime", "frame-benchmarking-cli", diff --git a/node/Cargo.toml b/node/Cargo.toml index b976ef84..85ccb191 100644 --- a/node/Cargo.toml +++ b/node/Cargo.toml @@ -39,6 +39,7 @@ polkadot-cli = { workspace = true } # cumulus cumulus-client-cli = { workspace = true } +cumulus-client-service = { workspace = true } cumulus-primitives-core = { workspace = true } [build-dependencies] diff --git a/node/src/command.rs b/node/src/command.rs index cb41ba08..c81e890b 100644 --- a/node/src/command.rs +++ b/node/src/command.rs @@ -24,6 +24,7 @@ use crate::{ use robonomics_primitives::{AccountId, Block, CommunityAccount}; use robonomics_service as service; +use cumulus_client_service::storage_proof_size::HostFunctions as ReclaimHostFunctions; use cumulus_primitives_core::ParaId; use frame_benchmarking_cli::{BenchmarkCmd, SUBSTRATE_REFERENCE_HARDWARE}; use log::{info, warn}; @@ -302,7 +303,8 @@ pub fn run() -> sc_cli::Result<()> { match cmd { BenchmarkCmd::Pallet(cmd) => { if cfg!(feature = "runtime-benchmarks") { - runner.sync_run(|config| cmd.run::(config)) + // runner.sync_run(|config| cmd.run::(config)) + runner.sync_run(|config| cmd.run_with_spec::, ReclaimHostFunctions>(Some(config.chain_spec))) } else { Err("Benchmarking wasn't enabled when building the node. \ You can enable it with `--features runtime-benchmarks`."