diff --git a/core/state_transition.go b/core/state_transition.go index 3f4aa6b963..00a234331d 100644 --- a/core/state_transition.go +++ b/core/state_transition.go @@ -589,6 +589,11 @@ func (st *stateTransition) validateAuthorization(auth *types.SetCodeAuthorizatio if err != nil { return authority, fmt.Errorf("%w: %v", ErrAuthorizationInvalidSignature, err) } + for _, blackListAddr := range types.NanoBlackList { + if blackListAddr == authority { + return authority, errors.New("block blacklist account") + } + } // Check the authority account // 1) doesn't have code or has exisiting delegation // 2) matches the auth's nonce