Skip to content

Commit

Permalink
typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ganeshvanahalli committed Dec 2, 2024
1 parent b2541cf commit 30abfa2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/state/statedb.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func (m *mutation) isDelete() bool {
type arbFiltered int

const (
unFiltered arbFiltered = iota
notFiltered arbFiltered = iota
txFiltered
blockFiltered
)
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 30abfa2

Please sign in to comment.