Remove an unnecessary clone of a PohConfig inside Validator::new

This commit is contained in:
Jason Davis 2022-12-07 11:25:28 -06:00 committed by Jason
parent 284c41a6db
commit 049fb3d725
1 changed files with 2 additions and 3 deletions

View File

@ -715,7 +715,6 @@ impl Validator {
max_slots.clone(),
);
let poh_config = genesis_config.poh_config.clone();
let startup_verification_complete;
let (poh_recorder, entry_receiver, record_receiver) = {
let bank = &bank_forks.read().unwrap().working_bank();
@ -730,7 +729,7 @@ impl Validator {
&blockstore,
blockstore.get_new_shred_signal(0),
&leader_schedule_cache,
&poh_config,
&genesis_config.poh_config,
Some(poh_timing_point_sender),
exit.clone(),
)
@ -901,7 +900,7 @@ impl Validator {
let poh_service = PohService::new(
poh_recorder.clone(),
&poh_config,
&genesis_config.poh_config,
&exit,
bank_forks.read().unwrap().root_bank().ticks_per_slot(),
config.poh_pinned_cpu_core,