mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 23:26:44 +00:00
immediately include uncles in pending block
This commit is contained in:
parent
4b8860a7b4
commit
e2e9a50cd0
1 changed files with 2 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue