From 311e986b424dd7a727d395ab5ebe071594e53e8e Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Wed, 6 Dec 2023 21:54:32 +0000 Subject: [PATCH] v1.17: patches slots_per_epoch vs last_slot ordering in shred_fetch_stage (backport of #34338) (#34345) patches slots_per_epoch vs last_slot ordering in shred_fetch_stage (#34338) (cherry picked from commit b1c701e53b45f8c4936a20b1294d80c314f08207) Co-authored-by: behzad nouri --- core/src/shred_fetch_stage.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/shred_fetch_stage.rs b/core/src/shred_fetch_stage.rs index 62733953cc724f..bbb130573cab9a 100644 --- a/core/src/shred_fetch_stage.rs +++ b/core/src/shred_fetch_stage.rs @@ -50,7 +50,7 @@ impl ShredFetchStage { .as_ref() .map(|(_, cluster_info)| cluster_info.keypair().clone()); - let (mut last_root, mut last_slot, mut slots_per_epoch) = { + let (mut last_root, mut slots_per_epoch, mut last_slot) = { let bank_forks_r = bank_forks.read().unwrap(); let root_bank = bank_forks_r.root_bank(); (