Skip to content

Commit

Permalink
Merge pull request #1675 from obscuren/submithashrate-change
Browse files Browse the repository at this point in the history
rpc/api: return boolean value for eth_submitHashrate
  • Loading branch information
obscuren committed Aug 17, 2015
2 parents 3608150 + 8839fee commit e1da124
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rpc/api/eth.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e1da124

Please sign in to comment.