rpc: fix Unknown transaction response for gettransactionheight

This commit is contained in:
Anna Shaleva 2021-11-09 16:39:41 +03:00
parent 173bf0be62
commit 3be2a22af8

View file

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