framework icon indicating copy to clipboard operation
framework copied to clipboard

Respect block limits when fetching transactions from persistence

Open rpanic opened this issue 2 months ago • 0 comments

Currently we retrieve all transactions that are stored in the TransactionStorage, then order/simulate them, and only then apply the given limit. This is very bad for performance for cases where the mempool is filled and will create a lot of performance and memory bottlenecks in those cases. A fix for this would be (since we don't know what percentage of transactions will be skipped/removed) to retrieve transactions just in time by the execution module

rpanic avatar Nov 07 '25 11:11 rpanic