Skip to content

Commit

Permalink
Feat: re-added comment
Browse files Browse the repository at this point in the history
  • Loading branch information
hmoog committed Oct 3, 2023
1 parent bb4d6a0 commit bc4c492
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/inx/server_issuance.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func (s *Server) RequestTips(_ context.Context, req *inx.TipsRequest) (*inx.Tips
}, nil
}

func (s *Server) ValidatePayload(ctx context.Context, payload *inx.RawPayload) (*inx.PayloadValidationResponse, error) {
func (s *Server) ValidatePayload(payload *inx.RawPayload) (*inx.PayloadValidationResponse, error) {
if err := func() error {
blockPayload, unwrapErr := payload.Unwrap(deps.Protocol.CurrentAPI(), serix.WithValidation())
if unwrapErr != nil {
Expand Down Expand Up @@ -53,6 +53,7 @@ func (s *Server) ValidatePayload(ctx context.Context, payload *inx.RawPayload) (
}

case *iotago.TaggedData:
// TaggedData is always valid if serix decoding was successful
return nil

default:
Expand Down

0 comments on commit bc4c492

Please sign in to comment.