diff --git a/pkg/rpc/server/server.go b/pkg/rpc/server/server.go index 68db88eb1..0864f4adb 100644 --- a/pkg/rpc/server/server.go +++ b/pkg/rpc/server/server.go @@ -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