Merge pull request #2247 from nspcc-dev/rpc/unknown_tx_err

rpc: fix `Unknown transaction` response for `gettransactionheight`
This commit is contained in:
Roman Khimov 2021-11-09 17:06:41 +03:00 committed by GitHub
commit fc487eaa44
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1248,7 +1248,7 @@ func (s *Server) getTransactionHeight(ps request.Params) (interface{}, *response
_, height, err := s.chain.GetTransaction(h)
if err != nil || height == math.MaxUint32 {
return nil, response.NewRPCError("unknown transaction", "", nil)
return nil, response.NewRPCError("Unknown transaction", "", nil)
}
return height, nil