This commit is contained in:
Roman Krasiuk
2022-11-18 15:12:57 +02:00
parent cc3340d7d3
commit 14e1800483

View File

@@ -92,7 +92,7 @@ impl<DB: Database, D: BodyDownloader, C: Consensus> Stage<DB> for BodyStage<D, C
// Short circuit in case we already reached the target block
let target = previous_stage_progress.min(starting_block + self.batch_size);
if target < starting_block {
if target <= previous_block {
return Ok(ExecOutput { stage_progress: target, reached_tip: true, done: true })
}