Skip to content

Commit

Permalink
txpool : simply set local as false
Browse files Browse the repository at this point in the history
  • Loading branch information
ucwong committed Mar 13, 2023
1 parent 7ab5929 commit d7b7bf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/txpool/txpool.go
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,7 @@ func (pool *TxPool) add(tx *types.Transaction, local bool) (replaced bool, err e
// Add all transactions back to the priced queue
if replacesPending {
for _, dropTx := range drop {
pool.priced.Put(dropTx, local || pool.locals.containsTx(dropTx))
pool.priced.Put(dropTx, false)
}
log.Trace("Discarding future transaction replacing pending tx", "hash", hash)
return false, ErrFutureReplacePending
Expand Down

0 comments on commit d7b7bf0

Please sign in to comment.