Skip to content

Commit

Permalink
core/txpool: allow future local transactions (ethereum#26930)
Browse files Browse the repository at this point in the history
Local transactions should not be subject to the "future shouldn't churn pending txs" rule
  • Loading branch information
MariusVanDerWijden authored and shekhirin committed Jun 6, 2023
1 parent f29baa6 commit a929fc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/txpool/txpool.go
Expand Up @@ -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)
Expand Down

0 comments on commit a929fc3

Please sign in to comment.