1
0
Fork 0
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:
Henrik Hautakoski 2024-07-13 15:54:35 +02:00
parent e2443dcd27
commit cbd3196cf9
3 changed files with 18 additions and 14 deletions

View file

@ -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,