mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-02-04 03:55:22 -05:00
fix: update indices outside of loop on PersistenceService (#9945)
This commit is contained in:
@@ -87,14 +87,14 @@ impl<DB: Database> PersistenceService<DB> {
|
||||
provider_rw.write_hashed_state(&hashed_state.clone().into_sorted())?;
|
||||
provider_rw.write_trie_updates(&trie_updates)?;
|
||||
}
|
||||
|
||||
// update history indices
|
||||
provider_rw.update_history_indices(first_number..=last_block_number)?;
|
||||
|
||||
// Update pipeline progress
|
||||
provider_rw.update_pipeline_stages(last_block_number, false)?;
|
||||
}
|
||||
|
||||
// update history indices
|
||||
provider_rw.update_history_indices(first_number..=last_block_number)?;
|
||||
|
||||
// Update pipeline progress
|
||||
provider_rw.update_pipeline_stages(last_block_number, false)?;
|
||||
|
||||
provider_rw.commit()?;
|
||||
|
||||
debug!(target: "tree::persistence", range = ?first_number..=last_block_number, "Appended block data");
|
||||
|
||||
Reference in New Issue
Block a user