Fixes and debug added

This commit is contained in:
obscuren
2015-03-03 20:13:11 +01:00
parent 40ff3cac39
commit 8e995b97cc
4 changed files with 8 additions and 6 deletions

View File

@ -42,11 +42,16 @@ func (self *CpuMiner) Start() {
}
func (self *CpuMiner) update() {
justStarted := true
out:
for {
select {
case block := <-self.c:
self.quitCurrentOp <- struct{}{}
if justStarted {
justStarted = true
} else {
self.quitCurrentOp <- struct{}{}
}
go self.mine(block)
case <-self.quit: