From 63fc17f85121f84d597742a49b99ab3d022aa6bd Mon Sep 17 00:00:00 2001 From: Determinant Date: Wed, 14 Aug 2019 16:04:43 -0400 Subject: ... --- miner/worker.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'miner') diff --git a/miner/worker.go b/miner/worker.go index 5124758..cb0ec7b 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -28,7 +28,7 @@ import ( "sync" "sync/atomic" "time" - "fmt" + //"fmt" mapset "github.com/deckarep/golang-set" "github.com/ethereum/go-ethereum/common" @@ -294,7 +294,7 @@ func (w *worker) close() { func (w *worker) genBlock() { interrupt := new(int32) - *interrupt = commitInterruptNewHead + *interrupt = commitInterruptNone w.newWorkCh <- &newWorkReq{ interrupt: interrupt, noempty: false, @@ -635,7 +635,6 @@ func (w *worker) resultLoop() { // Insert the block into the set of pending ones to resultLoop for confirmations w.unconfirmed.Insert(block.NumberU64(), block.Hash()) - fmt.Printf("new parent: %s\n", w.chain.CurrentBlock().Hash().String()) case <-w.exitCh: return -- cgit v1.2.3-70-g09d2