From 336a94456ff73fecebb2c029bf158beb1224cf0d Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Thu, 9 Jan 2020 20:44:27 +0300 Subject: [PATCH] rpc: make blockHeightFromParam a pointer method Makes no sense copying Server here. --- pkg/rpc/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/rpc/server.go b/pkg/rpc/server.go index 0ed89cb6e..183019e67 100644 --- a/pkg/rpc/server.go +++ b/pkg/rpc/server.go @@ -549,7 +549,7 @@ func (s *Server) sendrawtransaction(reqParams Params) (interface{}, error) { return results, resultsErr } -func (s Server) blockHeightFromParam(param *Param) (int, error) { +func (s *Server) blockHeightFromParam(param *Param) (int, error) { num, err := param.GetInt() if err != nil { return 0, nil