rpc: make blockHeightFromParam a pointer method

Makes no sense copying Server here.
This commit is contained in:
Roman Khimov 2020-01-09 20:44:27 +03:00
parent f345db58ab
commit 336a94456f

View file

@ -549,7 +549,7 @@ func (s *Server) sendrawtransaction(reqParams Params) (interface{}, error) {
return results, resultsErr return results, resultsErr
} }
func (s Server) blockHeightFromParam(param *Param) (int, error) { func (s *Server) blockHeightFromParam(param *Param) (int, error) {
num, err := param.GetInt() num, err := param.GetInt()
if err != nil { if err != nil {
return 0, nil return 0, nil