aboutsummaryrefslogtreecommitdiffstats
path: root/eth
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2016-04-11 22:31:00 +0800
committerPéter Szilágyi <peterke@gmail.com>2016-04-11 22:31:00 +0800
commitbf1f6203438a2d89fdf174ccc462a9e3b916cebd (patch)
tree597245a8cefeff9848c913cfdf5c47a0191fb3bf /eth
parent701ac1ce6c8ff9a2c15969baf89466b3995b9a7b (diff)
downloadgo-tangerine-bf1f6203438a2d89fdf174ccc462a9e3b916cebd.tar
go-tangerine-bf1f6203438a2d89fdf174ccc462a9e3b916cebd.tar.gz
go-tangerine-bf1f6203438a2d89fdf174ccc462a9e3b916cebd.tar.bz2
go-tangerine-bf1f6203438a2d89fdf174ccc462a9e3b916cebd.tar.lz
go-tangerine-bf1f6203438a2d89fdf174ccc462a9e3b916cebd.tar.xz
go-tangerine-bf1f6203438a2d89fdf174ccc462a9e3b916cebd.tar.zst
go-tangerine-bf1f6203438a2d89fdf174ccc462a9e3b916cebd.zip
eth: fix GPU miner chain config regression
Diffstat (limited to 'eth')
-rw-r--r--eth/gpu_mining.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/eth/gpu_mining.go b/eth/gpu_mining.go
index c351c2bdd..cd734bd3c 100644
--- a/eth/gpu_mining.go
+++ b/eth/gpu_mining.go
@@ -56,8 +56,7 @@ func (s *Ethereum) StartMining(threads int, gpus string) error {
}
// TODO: re-creating miner is a bit ugly
- cl := ethash.NewCL(ids)
- s.miner = miner.New(s, s.EventMux(), cl)
+ s.miner = miner.New(s, s.chainConfig, s.EventMux(), ethash.NewCL(ids))
go s.miner.Start(eb, len(ids))
return nil
}