diff options
author | Determinant <[email protected]> | 2019-08-14 16:04:43 -0400 |
---|---|---|
committer | Determinant <[email protected]> | 2019-08-14 16:04:43 -0400 |
commit | 63fc17f85121f84d597742a49b99ab3d022aa6bd (patch) | |
tree | f5c0f4136445ba1b1d2c0bb6ac728d9ab382c4c4 /miner | |
parent | 499f682b48f914ed4af0e32ba446dd0cf56e96b4 (diff) |
...
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 |