diff options
author | obscuren <geffobscura@gmail.com> | 2015-05-11 21:43:14 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-05-11 23:21:22 +0800 |
commit | 21e52efdfed19c4376b830f8ad0e52a9e599f633 (patch) | |
tree | a3d6f2be23c64881461892572adc9d1b55cd4b39 /rpc | |
parent | 064cf1609987bb0f6c59c1e790b7811d9a783fef (diff) | |
download | go-tangerine-21e52efdfed19c4376b830f8ad0e52a9e599f633.tar go-tangerine-21e52efdfed19c4376b830f8ad0e52a9e599f633.tar.gz go-tangerine-21e52efdfed19c4376b830f8ad0e52a9e599f633.tar.bz2 go-tangerine-21e52efdfed19c4376b830f8ad0e52a9e599f633.tar.lz go-tangerine-21e52efdfed19c4376b830f8ad0e52a9e599f633.tar.xz go-tangerine-21e52efdfed19c4376b830f8ad0e52a9e599f633.tar.zst go-tangerine-21e52efdfed19c4376b830f8ad0e52a9e599f633.zip |
cmd/geth, miner, backend, xeth: Fixed miner threads to be settable
Miner threads are now settable through the admin interface (closes #897)
and specify 0 CPU worker threads when eth_getWork is called (closes #916)
Diffstat (limited to 'rpc')
-rw-r--r-- | rpc/api.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rpc/api.go b/rpc/api.go index 309c161ad..d53a9917d 100644 --- a/rpc/api.go +++ b/rpc/api.go @@ -391,7 +391,7 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err } *reply = NewLogsRes(api.xeth().AllLogs(args.Earliest, args.Latest, args.Skip, args.Max, args.Address, args.Topics)) case "eth_getWork": - api.xeth().SetMining(true) + api.xeth().SetMining(true, 0) *reply = api.xeth().RemoteMining().GetWork() case "eth_submitWork": args := new(SubmitWorkArgs) |