Commit bf1f6203 authored by Péter Szilágyi's avatar Péter Szilágyi

eth: fix GPU miner chain config regression

parent 701ac1ce
...@@ -56,8 +56,7 @@ func (s *Ethereum) StartMining(threads int, gpus string) error { ...@@ -56,8 +56,7 @@ func (s *Ethereum) StartMining(threads int, gpus string) error {
} }
// TODO: re-creating miner is a bit ugly // TODO: re-creating miner is a bit ugly
cl := ethash.NewCL(ids) s.miner = miner.New(s, s.chainConfig, s.EventMux(), ethash.NewCL(ids))
s.miner = miner.New(s, s.EventMux(), cl)
go s.miner.Start(eb, len(ids)) go s.miner.Start(eb, len(ids))
return nil return nil
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment