Skip to content

mempool: handle out-of-order ABCI responses #5519

@erikgrinaker

Description

@erikgrinaker

The mempool currently seems to require asynchronous ABCI calls to returns responses in the same order they were called - e.g. CListMempool.recheckCursor has an ordered list of transactions to recheck, but calls CheckTxAsync to actually recheck them, which may return responses in a different order.

This caused #5439, since the gRPC ABCI client, although serial in nature, used unordered goroutines to simulate async responses in order to satisfy the async API semantics.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C:mempoolComponent: Mempoolstalefor use by stalebot

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions