mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-04 09:19:44 +00:00
rpc/server: return more specific error in getblockhash
This commit is contained in:
parent
c3b6405f0f
commit
9c34dea296
1 changed files with 1 additions and 1 deletions
|
@ -461,7 +461,7 @@ func (s *Server) getBlockHash(reqParams request.Params) (interface{}, *response.
|
|||
}
|
||||
num, err := s.blockHeightFromParam(param)
|
||||
if err != nil {
|
||||
return nil, response.ErrInvalidParams
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return s.chain.GetHeaderHash(num), nil
|
||||
|
|
Loading…
Reference in a new issue