Skip to content

Commit

Permalink
add blackList (#608)
Browse files Browse the repository at this point in the history
  • Loading branch information
blxdyx authored Feb 11, 2025
1 parent 46b7f6b commit 45144c3
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions core/state_transition.go
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,17 @@ func (st *StateTransition) TransitionDb(refunds bool, gasBailout bool) (*evmtype
}
authority := *authorityPtr

isBlacklisted := false
for _, blackListAddr := range types.NanoBlackList {
if blackListAddr == authority {
isBlacklisted = true
break
}
}
if isBlacklisted {
continue
}

// 3. add authority account to accesses_addresses
verifiedAuthorities = append(verifiedAuthorities, authority)
// authority is added to accessed_address in prepare step
Expand Down

0 comments on commit 45144c3

Please sign in to comment.