diff options
author | Determinant <[email protected]> | 2019-08-12 16:27:52 -0400 |
---|---|---|
committer | Determinant <[email protected]> | 2019-08-12 16:27:52 -0400 |
commit | fd39e6b30af5d855dce23899394e6ef80a2c0a41 (patch) | |
tree | 0c5b8690cc6f497657f8f65a5e7f97c4c4365fb9 /miner/worker.go | |
parent | ce505015e5f973c8f5d605aa468ad75fceeeb169 (diff) |
...
Diffstat (limited to 'miner/worker.go')
-rw-r--r-- | miner/worker.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/miner/worker.go b/miner/worker.go index edfd3f9..f5357f3 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -28,6 +28,7 @@ import ( "sync" "sync/atomic" "time" + "fmt" mapset "github.com/deckarep/golang-set" "github.com/ethereum/go-ethereum/common" @@ -617,6 +618,7 @@ 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 |