diff options
Diffstat (limited to 'miner/worker.go')
-rw-r--r-- | miner/worker.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/miner/worker.go b/miner/worker.go index 916481973..9fb248efa 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -225,7 +225,11 @@ func (self *worker) push() { for _, agent := range self.agents { atomic.AddInt64(&self.atWork, 1) - agent.Work() <- self.current.block.Copy() + if agent.Work() != nil { + agent.Work() <- self.current.block.Copy() + } else { + common.Report(fmt.Sprintf("%v %T\n", agent, agent)) + } } } } |