diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-08-18 02:49:15 +0800 |
---|---|---|
committer | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-08-18 02:49:15 +0800 |
commit | e1da1244157741b9aa17c67ef48f37d07484e905 (patch) | |
tree | 2c81340e270af3c071002b8acd58b9562b7c0742 /rpc | |
parent | 36081505c4b258400756ad004f986d638e0e8156 (diff) | |
parent | 8839fee415cebb70476312a1bc495abb0eed82e9 (diff) | |
download | go-tangerine-e1da1244157741b9aa17c67ef48f37d07484e905.tar go-tangerine-e1da1244157741b9aa17c67ef48f37d07484e905.tar.gz go-tangerine-e1da1244157741b9aa17c67ef48f37d07484e905.tar.bz2 go-tangerine-e1da1244157741b9aa17c67ef48f37d07484e905.tar.lz go-tangerine-e1da1244157741b9aa17c67ef48f37d07484e905.tar.xz go-tangerine-e1da1244157741b9aa17c67ef48f37d07484e905.tar.zst go-tangerine-e1da1244157741b9aa17c67ef48f37d07484e905.zip |
Merge pull request #1675 from obscuren/submithashrate-change
rpc/api: return boolean value for eth_submitHashrate
Diffstat (limited to 'rpc')
-rw-r--r-- | rpc/api/eth.go | 4 |
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) { |