core: remove unused error from TxPool.Pending (#23720)

This commit is contained in:
jwasinger
2021-10-13 23:00:45 +02:00
committed by GitHub
parent 79b727bc8a
commit 011fe3eb5e
8 changed files with 9 additions and 23 deletions

View File

@ -987,11 +987,7 @@ func (w *worker) commitNewWork(interrupt *int32, noempty bool, timestamp int64)
}
// Fill the block with all available pending transactions.
pending, err := w.eth.TxPool().Pending(true)
if err != nil {
log.Error("Failed to fetch pending transactions", "err", err)
return
}
pending := w.eth.TxPool().Pending(true)
// Short circuit if there is no available pending transactions.
// But if we disable empty precommit already, ignore it. Since
// empty block is necessary to keep the liveness of the network.