@@ -51,7 +51,6 @@ type revision struct {
5151
5252 // Arbitrum: track the total balance change across all accounts
5353 unexpectedBalanceDelta * big.Int
54- arbTxFilter bool
5554}
5655
5756type mutationType int
@@ -224,6 +223,10 @@ func (s *StateDB) FilterTx() {
224223 s .arbExtraData .arbTxFilter = true
225224}
226225
226+ func (s * StateDB ) ClearTxFilter () {
227+ s .arbExtraData .arbTxFilter = false
228+ }
229+
227230func (s * StateDB ) IsTxFiltered () bool {
228231 return s .arbExtraData .arbTxFilter
229232}
@@ -829,7 +832,7 @@ func (s *StateDB) Copy() *StateDB {
829832func (s * StateDB ) Snapshot () int {
830833 id := s .nextRevisionId
831834 s .nextRevisionId ++
832- s .validRevisions = append (s .validRevisions , revision {id , s .journal .length (), new (big.Int ).Set (s .arbExtraData .unexpectedBalanceDelta ), s . arbExtraData . arbTxFilter })
835+ s .validRevisions = append (s .validRevisions , revision {id , s .journal .length (), new (big.Int ).Set (s .arbExtraData .unexpectedBalanceDelta )})
833836 return id
834837}
835838
@@ -845,7 +848,6 @@ func (s *StateDB) RevertToSnapshot(revid int) {
845848 revision := s .validRevisions [idx ]
846849 snapshot := revision .journalIndex
847850 s .arbExtraData .unexpectedBalanceDelta = new (big.Int ).Set (revision .unexpectedBalanceDelta )
848- s .arbExtraData .arbTxFilter = revision .arbTxFilter
849851
850852 // Replay the journal to undo changes and remove invalidated snapshots
851853 s .journal .revert (s , snapshot )
0 commit comments