From fd39e6b30af5d855dce23899394e6ef80a2c0a41 Mon Sep 17 00:00:00 2001 From: Determinant Date: Mon, 12 Aug 2019 16:27:52 -0400 Subject: ... --- miner/worker.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'miner') 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 -- cgit v1.2.3-70-g09d2