mirror of
https://github.com/eosswedenorg/thalos
synced 2026-06-18 04:40:03 +02:00
internal/types/blacklist.go: change Lookup to IsAllowed and add IsDenied
This commit is contained in:
parent
e2443dcd27
commit
cbd3196cf9
3 changed files with 18 additions and 14 deletions
|
|
@ -153,7 +153,7 @@ func (processor *ShipProcessor) proccessActionTrace(logger *log.Entry, trace *sh
|
|||
}
|
||||
|
||||
// Check blacklist if we should skip this action
|
||||
if processor.blacklist.Lookup(trace.Act.Account.String(), trace.Act.Name.String()) {
|
||||
if !processor.blacklist.IsAllowed(trace.Act.Account.String(), trace.Act.Name.String()) {
|
||||
logger.WithFields(log.Fields{
|
||||
"contract": trace.Act.Account,
|
||||
"action": trace.Act.Name,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue