Skip to content

Mempool remove counter from mempool tx #2835

@ValarDragon

Description

@ValarDragon

Within every single tx in the mempool, we store a 64 bit counter, as an index for when it was inserted into the mempool. This counter doesn't really serve any purpose. It was likely added for debugging at one point, but I am skeptical of the utility of it within debugging, as the order of txs in the mempool already gives you the insertion order. I believe we should remove the counter to reclaim that space, which enables greater mempool sizes / or mitigates memory usage at the same mempool size.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions