core/txpool: allow future local tx #26930 (#1857)

This commit is contained in:
Daniel Liu 2025-12-16 11:34:20 +08:00 committed by GitHub
parent 0894fcdb6e
commit ed6f9e82fc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -846,7 +846,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)