miner: remove NewMinedBlockEvent, close XFN-50 (#1644)

This commit is contained in:
Daniel Liu 2025-11-04 13:45:45 +08:00 committed by GitHub
parent 5d25e016d2
commit d319102837
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -415,10 +415,6 @@ func (w *worker) wait() {
continue
}
block := result.Block
if w.config.XDPoS != nil && block.NumberU64() >= w.config.XDPoS.Epoch && len(block.Validator()) == 0 {
w.mux.Post(core.NewMinedBlockEvent{Block: block})
continue
}
work := result.Work
// Different block could share same sealhash, deep copy here to prevent write-write conflict.