Unverified Commit e6b6a8b7 authored by Marius van der Wijden's avatar Marius van der Wijden Committed by GitHub

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

Local transactions should not be subject to the "future shouldn't churn pending txs" rule
parent 5d23d21f
...@@ -736,7 +736,7 @@ func (pool *TxPool) add(tx *types.Transaction, local bool) (replaced bool, err e ...@@ -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 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 var replacesPending bool
for _, dropTx := range drop { for _, dropTx := range drop {
dropSender, _ := types.Sender(pool.signer, dropTx) dropSender, _ := types.Sender(pool.signer, dropTx)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment