Skip to content

Persist injected transaction to DB only after MB finalization #5489

Description

@grishasobol

In ethexe/malachite/service/src/mempool.rs, the mempool insert path calls db.set_injected_transaction(tx) at insert time so the local RPC injected_getTransactions can serve the transaction by hash.

This persists transactions that may never be included or finalized. The DB write should instead happen only after the transaction's MB is finalized.

Task

Move the set_injected_transaction DB write out of the mempool insert path; persist injected transactions only once their MB is finalized.

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: normalStandard planned workscope: vara.ethVara Ethereum application layer (L2)size: SSmall task (hours)type: refactorInternal improvements without changing behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions