aboutsummaryrefslogtreecommitdiffstats
path: root/xeth
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-05-11 21:43:14 +0800
committerobscuren <geffobscura@gmail.com>2015-05-11 23:21:22 +0800
commit21e52efdfed19c4376b830f8ad0e52a9e599f633 (patch)
treea3d6f2be23c64881461892572adc9d1b55cd4b39 /xeth
parent064cf1609987bb0f6c59c1e790b7811d9a783fef (diff)
downloadgo-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 'xeth')
-rw-r--r--xeth/xeth.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/xeth/xeth.go b/xeth/xeth.go
index 47b833a34..bf5844770 100644
--- a/xeth/xeth.go
+++ b/xeth/xeth.go
@@ -425,10 +425,10 @@ func (self *XEth) ClientVersion() string {
return self.backend.ClientVersion()
}
-func (self *XEth) SetMining(shouldmine bool) bool {
+func (self *XEth) SetMining(shouldmine bool, threads int) bool {
ismining := self.backend.IsMining()
if shouldmine && !ismining {
- err := self.backend.StartMining()
+ err := self.backend.StartMining(threads)
return err == nil
}
if ismining && !shouldmine {