Skip to content

Commit

Permalink
throw error for legacy transcoders
Browse files Browse the repository at this point in the history
  • Loading branch information
kyriediculous committed Jun 21, 2024
1 parent 806a4b2 commit b7ebaaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/ot_rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ func (h *lphttp) RegisterTranscoder(req *net.RegisterRequest, stream net.Transco
}
// handle case of legacy Transcoder which do not advertise capabilities
if req.Capabilities == nil {
req.Capabilities = core.NewCapabilities(core.DefaultCapabilities(), nil).ToNetCapabilities()
return errCapabilities
}

if req.EthereumAddress == nil {
Expand Down

0 comments on commit b7ebaaf

Please sign in to comment.