Use max commitment when fetching epoch info for block production

This commit is contained in:
Michael Vines 2021-01-03 19:12:22 -08:00 committed by mergify[bot]
parent 9bb08ce75e
commit 2724f37d0e
1 changed files with 1 additions and 1 deletions

View File

@ -911,7 +911,7 @@ pub fn process_show_block_production(
slot_limit: Option<u64>,
) -> ProcessResult {
let epoch_schedule = rpc_client.get_epoch_schedule()?;
let epoch_info = rpc_client.get_epoch_info_with_commitment(CommitmentConfig::root())?;
let epoch_info = rpc_client.get_epoch_info_with_commitment(CommitmentConfig::max())?;
let epoch = epoch.unwrap_or(epoch_info.epoch);
if epoch > epoch_info.epoch {