From 30abfa28d13911257bc4a94631268ae46934db43 Mon Sep 17 00:00:00 2001 From: Ganesh Vanahalli Date: Mon, 2 Dec 2024 15:10:43 -0600 Subject: [PATCH] typo fix --- core/state/statedb.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/state/statedb.go b/core/state/statedb.go index cfb692e6b..d8f56fa05 100644 --- a/core/state/statedb.go +++ b/core/state/statedb.go @@ -77,7 +77,7 @@ func (m *mutation) isDelete() bool { type arbFiltered int const ( - unFiltered arbFiltered = iota + notFiltered arbFiltered = iota txFiltered blockFiltered ) @@ -232,7 +232,7 @@ func New(root common.Hash, db Database, snaps *snapshot.Tree) (*StateDB, error) } func (s *StateDB) FilterTx(withBlock bool) { - if s.arbTxFilter == unFiltered { + if s.arbTxFilter == notFiltered { s.arbTxFilter = txFiltered if withBlock { s.arbTxFilter = blockFiltered @@ -861,7 +861,7 @@ func (s *StateDB) RevertToSnapshot(revid int) { snapshot := revision.journalIndex s.arbExtraData.unexpectedBalanceDelta = new(big.Int).Set(revision.unexpectedBalanceDelta) if s.arbTxFilter == txFiltered { - s.arbTxFilter = unFiltered + s.arbTxFilter = notFiltered } // Replay the journal to undo changes and remove invalidated snapshots