Skip to content

Commit

Permalink
remove pending protection
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenlanders committed Jan 26, 2024
1 parent 5a433d2 commit d666414
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions internal/mempool/mempool.go
Original file line number Diff line number Diff line change
Expand Up @@ -316,19 +316,6 @@ func (txmp *TxMempool) CheckTx(
if err != nil {
return err
}
} else if txmp.isInMempool(wtx.tx) {
// if a transaction exists as non-pending and arrives as pending, evict
txmp.logger.Debug(
"existing transaction no longer valid; arrived as pending in CheckTX",
"priority", wtx.priority,
"tx", fmt.Sprintf("%X", wtx.tx.Hash()),
"err", err,
"code", res.Code,
"evm", res.IsEVM,
"nonce", res.EVMNonce,
"address", res.EVMSenderAddress,
)
txmp.removeTx(wtx, !txmp.config.KeepInvalidTxsInCache)
} else {
// otherwise add to pending txs store
if res.Checker == nil {
Expand Down

0 comments on commit d666414

Please sign in to comment.