Skip to content

Commit

Permalink
break out the nonce32 loop, not the select statement off course
Browse files Browse the repository at this point in the history
  • Loading branch information
robvanmieghem committed Nov 26, 2016
1 parent 598cb70 commit 8fe9abe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,12 @@ func createWork(siaclient clients.SiaClient, miningWorkChannel chan *MiningWork,
}
//Fill the workchannel with work
// Only generate nonces for a 32 bit space (since gpu's are mostly 32 bit)
nonce32loop:
for i := int64(0); i*int64(globalItemSize) < (maxUint32 - int64(globalItemSize)); i++ {
//Do not continue mining the 32 bit nonce space if the current job is deprecated
select {
case <-deprecationChannel:
break
break nonce32loop
default:
}

Expand Down

0 comments on commit 8fe9abe

Please sign in to comment.