Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Commit

Permalink
fix: actually commit (paradigmxyz#11626)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Oct 10, 2024
1 parent 672e311 commit a4b8150
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions crates/engine/tree/src/persistence.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,11 @@ impl<N: ProviderNodeTypes> PersistenceService<N> {
// we ignore the error because the caller may or may not care about the result
let _ = sender.send(res);
}
PersistenceAction::SaveFinalizedBlock(finalized_block) => self
.provider
.database_provider_rw()?
.save_finalized_block_number(finalized_block)?,
PersistenceAction::SaveFinalizedBlock(finalized_block) => {
let provider = self.provider.database_provider_rw()?;
provider.save_finalized_block_number(finalized_block)?;
provider.commit()?;
}
}
}
Ok(())
Expand Down

0 comments on commit a4b8150

Please sign in to comment.