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

@ -240,10 +240,7 @@ func (b *EthAPIBackend) SendTx(ctx context.Context, signedTx *types.Transaction)
}
func (b *EthAPIBackend) GetPoolTransactions() (types.Transactions, error) {
pending, err := b.eth.txPool.Pending(false)
if err != nil {
return nil, err
}
pending := b.eth.txPool.Pending(false)
var txs types.Transactions
for _, batch := range pending {
txs = append(txs, batch...)