mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 04:36:42 +00:00
Respect index num
This commit is contained in:
parent
4082109f26
commit
52e032e3b6
1 changed files with 2 additions and 1 deletions
|
|
@ -61,7 +61,8 @@ func (self *Miner) HashRate() int64 {
|
|||
|
||||
func (self *Miner) AddThreads(minerThreads int) int {
|
||||
if minerThreads > 0 {
|
||||
for i := 0; i < minerThreads; i++ {
|
||||
|
||||
for i := len(self.worker.agents); i < minerThreads+i; i++ {
|
||||
self.worker.register(NewCpuMiner(i, self.pow))
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue