mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-30 01:28:21 -05:00
fix(sync): done flag for index history stages (#1935)
This commit is contained in:
@@ -53,7 +53,7 @@ impl<DB: Database> Stage<DB> for IndexAccountHistoryStage {
|
||||
tx.insert_account_history_index(indices)?;
|
||||
|
||||
info!(target: "sync::stages::index_account_history", "Stage finished");
|
||||
Ok(ExecOutput { stage_progress: to_block, done: true })
|
||||
Ok(ExecOutput { stage_progress: to_block, done: to_block == previous_stage_progress })
|
||||
}
|
||||
|
||||
/// Unwind the stage.
|
||||
|
||||
@@ -54,7 +54,7 @@ impl<DB: Database> Stage<DB> for IndexStorageHistoryStage {
|
||||
tx.insert_storage_history_index(indices)?;
|
||||
|
||||
info!(target: "sync::stages::index_storage_history", "Stage finished");
|
||||
Ok(ExecOutput { stage_progress: to_block, done: true })
|
||||
Ok(ExecOutput { stage_progress: to_block, done: to_block == previous_stage_progress })
|
||||
}
|
||||
|
||||
/// Unwind the stage.
|
||||
|
||||
Reference in New Issue
Block a user