taking bad transaction out the slice (#5265)

This commit is contained in:
Enrique Jose Avila Asapche 2022-09-02 16:26:38 +03:00 committed by GitHub
parent ea576ba6f1
commit 68cc6e4612
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -362,7 +362,7 @@ func filterBadTransactions(tx kv.Tx, transactions []types.Transaction, config pa
transaction := transactions[0]
sender, ok := transaction.GetSender()
if !ok {
transactions = transactions[:1]
transactions = transactions[1:]
continue
}
var account accounts.Account
@ -371,7 +371,7 @@ func filterBadTransactions(tx kv.Tx, transactions []types.Transaction, config pa
return nil, err
}
if !ok {
transactions = transactions[:1]
transactions = transactions[1:]
continue
}
// Check transaction nonce