diff --git a/codec/unknownproto/unknown_fields.go b/codec/unknownproto/unknown_fields.go index c14e0ec96c16..9dda4e629b4b 100644 --- a/codec/unknownproto/unknown_fields.go +++ b/codec/unknownproto/unknown_fields.go @@ -72,6 +72,7 @@ func RejectUnknownFields(bz []byte, msg proto.Message, allowUnknownNonCriticals WantWireType: toProtowireType(fieldDescProto.GetType()), } } + default: isCriticalField := tagNum&bit11NonCritical == 0