0xPolygonHermez / cdk-erigon

Ethereum implementation on the efficiency frontier
GNU Lesser General Public License v3.0
35 stars 39 forks source link

[Sequencer] txpool to remove old transactions #1459

Open hexoscott opened 1 week ago

hexoscott commented 1 week ago

In certain networks the number of transactions grows quite quickly and old transactions can sit consuming space.

The task is to have a new flag zkevm.txpool-tx-age which is set to a timeframe (defaulted to 24h). When a new transaction comes in we mark the time on it and a cleanup process runs every minute to check for and remove old transactions. When the pool does this it should log at debug level the hash which was removed and ideally for which account as well.