From 2724f37d0e0f2816d1384ce295498d77a397d675 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Sun, 3 Jan 2021 19:12:22 -0800 Subject: [PATCH] Use max commitment when fetching epoch info for block production --- cli/src/cluster_query.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/cluster_query.rs b/cli/src/cluster_query.rs index 3ac5c8de1f..4e6e12dbdf 100644 --- a/cli/src/cluster_query.rs +++ b/cli/src/cluster_query.rs @@ -911,7 +911,7 @@ pub fn process_show_block_production( slot_limit: Option, ) -> 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 {