Skip to content

Commit

Permalink
fix: update indices outside of loop on PersistenceService (#9945)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshieDo authored Jul 31, 2024
1 parent 750eb26 commit 245284d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions crates/engine/tree/src/persistence.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,13 @@ 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 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 pipeline progress
provider_rw.update_pipeline_stages(last_block_number, false)?;

provider_rw.commit()?;

Expand Down

0 comments on commit 245284d

Please sign in to comment.