Skip to content

Respect block limits when fetching transactions from persistence #330

@rpanic

Description

@rpanic

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions