Merge pull request #2247 from nspcc-dev/rpc/unknown_tx_err
rpc: fix `Unknown transaction` response for `gettransactionheight`
This commit is contained in:
commit
fc487eaa44
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue