paritytech / polkadot-sdk

The Parity Polkadot Blockchain SDK
https://polkadot.com/
1.89k stars 694 forks source link

`fatxpool`: add LRUCache for views. #5474

Open michalkucharczyk opened 2 months ago

michalkucharczyk commented 2 months ago

Currently the number of views can grow w/o any limits together with the number of forks. This is not likely to happen, but could be possible e.g. if finalization is stalled. LRU Cache should prevent this. I would start with 5 active and 10 inactive views.

Polkadot-Forum commented 2 weeks ago

This issue has been mentioned on Polkadot Forum. There might be relevant details there:

https://forum.polkadot.network/t/the-fork-aware-transaction-pool/10468/14