Skip to content

Commit

Permalink
remove of self.commit_with_diff (#503)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikiw committed Jun 19, 2024
1 parent 24ed52d commit 3ec7aab
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions crates/starknet-devnet-core/src/starknet/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -330,11 +330,6 @@ impl Starknet {
// insert pending block in the blocks collection and connect it to the state diff
self.blocks.insert(new_block, state_diff);

// clone_historic() requires self.historic_state, self.historic_state is set in
// expand_historic(), expand_historic() can be executed from commit_with_diff() - this
// is why self.commit_with_diff()? is here
self.commit_with_diff()?;

// save into blocks state archive
if self.config.state_archive == StateArchiveCapacity::Full {
let clone = self.pending_state.clone_historic();
Expand Down

0 comments on commit 3ec7aab

Please sign in to comment.