From e2e9a50cd00e6e3d7e7c37b5cd5ac5e01e3ced68 Mon Sep 17 00:00:00 2001 From: cdetrio Date: Thu, 6 Jul 2017 10:59:02 -0400 Subject: [PATCH] immediately include uncles in pending block --- miner/worker.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/miner/worker.go b/miner/worker.go index e44514755a..46cf37b870 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -239,6 +239,8 @@ func (self *worker) update() { self.uncleMu.Lock() self.possibleUncles[ev.Block.Hash()] = ev.Block self.uncleMu.Unlock() + // immediately include uncles + self.commitNewWork() case core.TxPreEvent: // Apply transaction to the pending state if we're not mining if atomic.LoadInt32(&self.mining) == 0 {