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 #6269

Merged
merged 14 commits into from
Jan 21, 2023
6 changes: 5 additions & 1 deletion cli/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,11 @@ where
let hwbench = if !cli.run.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