Skip to content

Commit

Permalink
revert panic on snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
ganeshvanahalli committed Dec 10, 2024
1 parent 21bf5b2 commit c7f6a03
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions core/state/statedb.go
Original file line number Diff line number Diff line change
Expand Up @@ -842,9 +842,6 @@ func (s *StateDB) Copy() *StateDB {

// Snapshot returns an identifier for the current revision of the state.
func (s *StateDB) Snapshot() int {
if s.arbTxFilter == txFiltered {
panic("trying to create a new snapshot when the previous transaction applied to this state was filtered. RevertToSnapshot should be called before moving on to the next transaction")
}
id := s.nextRevisionId
s.nextRevisionId++
s.validRevisions = append(s.validRevisions, revision{id, s.journal.length(), new(big.Int).Set(s.arbExtraData.unexpectedBalanceDelta)})
Expand Down

0 comments on commit c7f6a03

Please sign in to comment.