mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 11:41:02 +00:00
* Use polkadot reference hardware for benchmark machine Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Rename POLKADOT_REFERENCE_HARDWARE -> SUBSTRATE_REFERENCE_HARDWARE 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> * Revert "cargo update -p polkadot-primitives" This reverts commit 051d51c5ab3fdd80c6351e16d3255efc67288136. * cargo update -p polkadot-primitives Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
This commit is contained in:
committed by
GitHub
parent
9550172cb9
commit
c5298f6245
Generated
+246
-243
File diff suppressed because it is too large
Load Diff
@@ -6,7 +6,7 @@ use crate::{
|
|||||||
use codec::Encode;
|
use codec::Encode;
|
||||||
use cumulus_client_service::genesis::generate_genesis_block;
|
use cumulus_client_service::genesis::generate_genesis_block;
|
||||||
use cumulus_primitives_core::ParaId;
|
use cumulus_primitives_core::ParaId;
|
||||||
use frame_benchmarking_cli::BenchmarkCmd;
|
use frame_benchmarking_cli::{BenchmarkCmd, SUBSTRATE_REFERENCE_HARDWARE};
|
||||||
use log::info;
|
use log::info;
|
||||||
use parachain_template_runtime::{Block, RuntimeApi};
|
use parachain_template_runtime::{Block, RuntimeApi};
|
||||||
use polkadot_parachain::primitives::AccountIdConversion;
|
use polkadot_parachain::primitives::AccountIdConversion;
|
||||||
@@ -262,7 +262,8 @@ pub fn run() -> Result<()> {
|
|||||||
cmd.run(config, partials.client.clone(), db, storage)
|
cmd.run(config, partials.client.clone(), db, storage)
|
||||||
}),
|
}),
|
||||||
BenchmarkCmd::Overhead(_) => Err("Unsupported benchmarking command".into()),
|
BenchmarkCmd::Overhead(_) => Err("Unsupported benchmarking command".into()),
|
||||||
BenchmarkCmd::Machine(cmd) => runner.sync_run(|config| cmd.run(&config)),
|
BenchmarkCmd::Machine(cmd) =>
|
||||||
|
runner.sync_run(|config| cmd.run(&config, SUBSTRATE_REFERENCE_HARDWARE.clone())),
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
Some(Subcommand::TryRuntime(cmd)) => {
|
Some(Subcommand::TryRuntime(cmd)) => {
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ use crate::{
|
|||||||
use codec::Encode;
|
use codec::Encode;
|
||||||
use cumulus_client_service::genesis::generate_genesis_block;
|
use cumulus_client_service::genesis::generate_genesis_block;
|
||||||
use cumulus_primitives_core::ParaId;
|
use cumulus_primitives_core::ParaId;
|
||||||
use frame_benchmarking_cli::BenchmarkCmd;
|
use frame_benchmarking_cli::{BenchmarkCmd, SUBSTRATE_REFERENCE_HARDWARE};
|
||||||
use log::info;
|
use log::info;
|
||||||
use parachains_common::{AuraId, StatemintAuraId};
|
use parachains_common::{AuraId, StatemintAuraId};
|
||||||
use polkadot_parachain::primitives::AccountIdConversion;
|
use polkadot_parachain::primitives::AccountIdConversion;
|
||||||
@@ -502,7 +502,8 @@ pub fn run() -> Result<()> {
|
|||||||
})
|
})
|
||||||
}),
|
}),
|
||||||
BenchmarkCmd::Overhead(_) => Err("Unsupported benchmarking command".into()),
|
BenchmarkCmd::Overhead(_) => Err("Unsupported benchmarking command".into()),
|
||||||
BenchmarkCmd::Machine(cmd) => runner.sync_run(|config| cmd.run(&config)),
|
BenchmarkCmd::Machine(cmd) =>
|
||||||
|
runner.sync_run(|config| cmd.run(&config, SUBSTRATE_REFERENCE_HARDWARE.clone())),
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
Some(Subcommand::TryRuntime(cmd)) => {
|
Some(Subcommand::TryRuntime(cmd)) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user