diff options
Diffstat (limited to 'miner')
-rw-r--r-- | miner/worker.go | 5 |
1 files changed, 2 insertions, 3 deletions
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 |