Skip to content

add new method TryAddTx to mempool reactor #3296

Closed

Description

@sergio-mena

This new method will serve as a single point of access to the mempool reactor for incoming transactions.

Currently to add a transaction we call CListMempool.CheckTx(...) directly, either from the broadcast_tx_* RPC endpoints or from the Receive(...) method in the reactor. The goal of TryAddTx is to have a single method in the reactor where in the future we can put common logic for adding transactions, such as handling errors or sending new messages. In particular, this refactoring will be needed by the implementations of mempool lanes and the DOG protocol.

Activity

  1. changed the title [-]Add new method to mempool reactor, as an intermediate step between mempool RPC endpoints and . Commit to [3 days][/-] [+]New method `TryAddTx` [3 days][/+] on Jun 19, 2024
  2. changed the title [-]New method `TryAddTx` [3 days][/-] [+]add new method `TryAddTx` to mempool reactor[/+] on Jun 19, 2024
  3. cason commented on Jul 3, 2024

    @cason

    Can we get some context regarding the expected behavior of this introduced primitive?

  4. moved this from Todo to In Progress in CometBFTon Jul 4, 2024
  5. self-assigned this
    on Jul 4, 2024
  6. hvanz commented on Jul 8, 2024

    @hvanz
    Collaborator

    @cason I updated the description.

  7. moved this from In Progress to Ready for Review in CometBFTon Jul 9, 2024
  8. added a commit that references this issue on Jul 9, 2024
    7cd52cb
  9. moved this from Ready for Review to Done in CometBFTon Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions