aboutsummaryrefslogtreecommitdiffstats
path: root/miner/worker.go
diff options
context:
space:
mode:
Diffstat (limited to 'miner/worker.go')
-rw-r--r--miner/worker.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/miner/worker.go b/miner/worker.go
index ab01ba09e..1e5d47965 100644
--- a/miner/worker.go
+++ b/miner/worker.go
@@ -267,6 +267,12 @@ func (self *worker) wait() {
func (self *worker) push() {
if atomic.LoadInt32(&self.mining) == 1 {
+ if core.Canary(self.current.state) {
+ glog.Infoln("Toxicity levels rising to deadly levels. Your canary has died. You can go back or continue down the mineshaft --more--")
+ glog.Infoln("You turn back and abort mining")
+ return
+ }
+
self.current.state.Sync()
self.current.block.SetRoot(self.current.state.Root())