Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Warn validators with slow hardware #1863

Merged
merged 12 commits into from
Jan 21, 2023
2 changes: 1 addition & 1 deletion parachain-template/node/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ pub fn run() -> Result<()> {
let hwbench = if !cli.no_hardware_benchmarks {
config.database.path().map(|database_path| {
let _ = std::fs::create_dir_all(&database_path);
sc_sysinfo::gather_hwbench(Some(database_path))
sc_sysinfo::gather_hwbench(Some(database_path), SUBSTRATE_REFERENCE_HARDWARE.clone(), config.role.is_authority())
})
} else {
None
Expand Down
2 changes: 1 addition & 1 deletion polkadot-parachain/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,7 @@ pub fn run() -> Result<()> {
let hwbench = if !cli.no_hardware_benchmarks {
config.database.path().map(|database_path| {
let _ = std::fs::create_dir_all(&database_path);
sc_sysinfo::gather_hwbench(Some(database_path))
sc_sysinfo::gather_hwbench(Some(database_path), SUBSTRATE_REFERENCE_HARDWARE.clone(), config.role.is_authority())
})
} else {
None
Expand Down