core/txpool: allow future local transactions (#26930)

Local transactions should not be subject to the "future shouldn't churn pending txs" rule
pull/26935/head
Marius van der Wijden 2 years ago committed by GitHub
parent 5d23d21fff
commit e6b6a8b738
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      core/txpool/txpool.go

@ -736,7 +736,7 @@ func (pool *TxPool) add(tx *types.Transaction, local bool) (replaced bool, err e
}
// If the new transaction is a future transaction it should never churn pending transactions
if pool.isFuture(from, tx) {
if !isLocal && pool.isFuture(from, tx) {
var replacesPending bool
for _, dropTx := range drop {
dropSender, _ := types.Sender(pool.signer, dropTx)

Loading…
Cancel
Save