From c7f6a0386939b3f2dc9366613d8bae7f6c9812f7 Mon Sep 17 00:00:00 2001 From: Ganesh Vanahalli Date: Tue, 10 Dec 2024 16:02:53 -0600 Subject: [PATCH] revert panic on snapshot --- core/state/statedb.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/core/state/statedb.go b/core/state/statedb.go index def979c4a..eb7f12f4f 100644 --- a/core/state/statedb.go +++ b/core/state/statedb.go @@ -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)})