immediately include uncles in pending block

This commit is contained in:
cdetrio 2017-07-06 10:59:02 -04:00
parent 4b8860a7b4
commit e2e9a50cd0

View file

@ -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 {