aboutsummaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
authorJeffrey Wilcke <geffobscura@gmail.com>2015-08-17 21:09:30 +0800
committerJeffrey Wilcke <geffobscura@gmail.com>2015-08-17 21:09:30 +0800
commit8839fee415cebb70476312a1bc495abb0eed82e9 (patch)
tree580079dc998f589849baf95fbe8b3d5d8d32426f /rpc
parentcd81356acef707e077622791a88864a221fa13be (diff)
downloadgo-tangerine-8839fee415cebb70476312a1bc495abb0eed82e9.tar
go-tangerine-8839fee415cebb70476312a1bc495abb0eed82e9.tar.gz
go-tangerine-8839fee415cebb70476312a1bc495abb0eed82e9.tar.bz2
go-tangerine-8839fee415cebb70476312a1bc495abb0eed82e9.tar.lz
go-tangerine-8839fee415cebb70476312a1bc495abb0eed82e9.tar.xz
go-tangerine-8839fee415cebb70476312a1bc495abb0eed82e9.tar.zst
go-tangerine-8839fee415cebb70476312a1bc495abb0eed82e9.zip
rpc/api: return boolean value for eth_submitHashrate
Diffstat (limited to 'rpc')
-rw-r--r--rpc/api/eth.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/rpc/api/eth.go b/rpc/api/eth.go
index 820ea761b..5199bd966 100644
--- a/rpc/api/eth.go
+++ b/rpc/api/eth.go
@@ -577,10 +577,10 @@ func (self *ethApi) SubmitWork(req *shared.Request) (interface{}, error) {
func (self *ethApi) SubmitHashrate(req *shared.Request) (interface{}, error) {
args := new(SubmitHashRateArgs)
if err := self.codec.Decode(req.Params, &args); err != nil {
- return nil, shared.NewDecodeParamError(err.Error())
+ return false, shared.NewDecodeParamError(err.Error())
}
self.xeth.RemoteMining().SubmitHashrate(common.HexToHash(args.Id), args.Rate)
- return nil, nil
+ return true, nil
}
func (self *ethApi) Resend(req *shared.Request) (interface{}, error) {