set target hash/sec to half of capability for auto (#16096)

This commit is contained in:
Jeff Washington (jwash) 2021-03-24 14:48:38 -05:00 committed by GitHub
parent f68860a643
commit db3eecf1e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -463,7 +463,7 @@ fn main() -> Result<(), Box<dyn error::Error>> {
ClusterType::Development => {
let hashes_per_tick =
compute_hashes_per_tick(poh_config.target_tick_duration, 1_000_000);
poh_config.hashes_per_tick = Some(hashes_per_tick);
poh_config.hashes_per_tick = Some(hashes_per_tick / 2); // use 50% of peak ability
}
ClusterType::Devnet | ClusterType::Testnet | ClusterType::MainnetBeta => {
poh_config.hashes_per_tick = Some(clock::DEFAULT_HASHES_PER_TICK);