From 208d80b40dbbcf26b08ca665c75ff3acb53a6c04 Mon Sep 17 00:00:00 2001 From: Steven Czabaniuk Date: Mon, 4 Sep 2023 22:29:22 +0200 Subject: [PATCH] Use root_bank.slot() to update last_root to avoid unused variable This is more proper and was cleaned up in master, but doing minimal cleanup to keep BP diff minimal. --- 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 96364be57c9b56..984190452a9656 100644 --- a/core/src/shred_fetch_stage.rs +++ b/core/src/shred_fetch_stage.rs @@ -44,7 +44,7 @@ impl ShredFetchStage { // In the case of bank_forks=None, setup to accept any slot range let mut root_bank = bank_forks.read().unwrap().root_bank(); - let mut last_root = 0; + let mut last_root = root_bank.slot(); let mut last_slot = std::u64::MAX; let mut slots_per_epoch = 0;