aboutsummaryrefslogtreecommitdiff
path: root/miner
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2019-08-12 16:27:52 -0400
committerDeterminant <[email protected]>2019-08-12 16:27:52 -0400
commitfd39e6b30af5d855dce23899394e6ef80a2c0a41 (patch)
tree0c5b8690cc6f497657f8f65a5e7f97c4c4365fb9 /miner
parentce505015e5f973c8f5d605aa468ad75fceeeb169 (diff)
...
Diffstat (limited to 'miner')
-rw-r--r--miner/worker.go2
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