mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-09 20:41:20 +00:00
taking bad transaction out the slice (#5265)
This commit is contained in:
parent
ea576ba6f1
commit
68cc6e4612
@ -362,7 +362,7 @@ func filterBadTransactions(tx kv.Tx, transactions []types.Transaction, config pa
|
|||||||
transaction := transactions[0]
|
transaction := transactions[0]
|
||||||
sender, ok := transaction.GetSender()
|
sender, ok := transaction.GetSender()
|
||||||
if !ok {
|
if !ok {
|
||||||
transactions = transactions[:1]
|
transactions = transactions[1:]
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
var account accounts.Account
|
var account accounts.Account
|
||||||
@ -371,7 +371,7 @@ func filterBadTransactions(tx kv.Tx, transactions []types.Transaction, config pa
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if !ok {
|
if !ok {
|
||||||
transactions = transactions[:1]
|
transactions = transactions[1:]
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
// Check transaction nonce
|
// Check transaction nonce
|
||||||
|
Loading…
Reference in New Issue
Block a user