mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
miner: only fill the pending block pre-merge
This commit is contained in:
parent
6c6982163b
commit
ab0d224c73
1 changed files with 30 additions and 26 deletions
|
|
@ -1068,6 +1068,8 @@ func (w *worker) commitWork(interrupt *atomic.Int32, timestamp int64) {
|
|||
if err != nil {
|
||||
return
|
||||
}
|
||||
// Don't fill the pending block post-merge
|
||||
if !w.chainConfig.TerminalTotalDifficultyPassed {
|
||||
// Fill pending transactions from the txpool into the block.
|
||||
err = w.fillTransactions(interrupt, work)
|
||||
switch {
|
||||
|
|
@ -1097,6 +1099,8 @@ func (w *worker) commitWork(interrupt *atomic.Int32, timestamp int64) {
|
|||
work.discard()
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
// Submit the generated block for consensus sealing.
|
||||
w.commit(work.copy(), w.fullTaskHook, true, start)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue