Skip to content

Commit e6b6a8b

Browse files
core/txpool: allow future local transactions (#26930)
Local transactions should not be subject to the "future shouldn't churn pending txs" rule
1 parent 5d23d21 commit e6b6a8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/txpool/txpool.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,7 @@ func (pool *TxPool) add(tx *types.Transaction, local bool) (replaced bool, err e
736736
}
737737

738738
// If the new transaction is a future transaction it should never churn pending transactions
739-
if pool.isFuture(from, tx) {
739+
if !isLocal && pool.isFuture(from, tx) {
740740
var replacesPending bool
741741
for _, dropTx := range drop {
742742
dropSender, _ := types.Sender(pool.signer, dropTx)

0 commit comments

Comments
 (0)