Replacing last_processing_slot with processed slot

This commit is contained in:
Godmode Galactus 2023-09-08 14:05:54 +02:00
parent 797ed8d556
commit fc33b6bf06
No known key found for this signature in database
GPG Key ID: A04142C71ABB0DEA
1 changed files with 1 additions and 1 deletions

View File

@ -180,7 +180,7 @@ pub fn poll_block(
.context("Slot notification channel close")?;
let last_processed_slot = current_slot.load(std::sync::atomic::Ordering::Relaxed);
let last_processed_slot = if last_processed_slot == 0 {
last_processed_slot.saturating_sub(1)
processed_slot.saturating_sub(1)
} else {
last_processed_slot
};