Skip to content

Feature: need a mechanism to cleanup long queued transactions #2946

@zzzckck

Description

@zzzckck

Rationale

There are many dungling transactions that are queued in txpool, these transactions are not executable due to nonce notch (they don't meet the nonce consistent requirement)

Implementation

Option-1:

  • mark the timestamp of when the transactions was queued
  • for these accounts that have been queued for more than a certain threshold(1 day?), only keep the first queued tx in txpool, flush the others into database
  • on node shutdown: put the queued transaction into database along with timestamp
  • on node restart: reload these transactions with timestamp

Notice: this could eliminate lots of queued transactions, but did not solve the issue fundamentally. Welcome new ideas to address it, especially to avoid malicious attack by sending nonce-notch transactions.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions