You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
Activity
[-]Add new method to mempool reactor, as an intermediate step between mempool RPC endpoints and . Commit to [3 days][/-][+]New method `TryAddTx` [3 days][/+][-]New method `TryAddTx` [3 days][/-][+]add new method `TryAddTx` to mempool reactor[/+]cason commentedon Jul 3, 2024
Can we get some context regarding the expected behavior of this introduced primitive?
hvanz commentedon Jul 8, 2024
@cason I updated the description.
refactor(mempool): add method `TryAddTx` to reactor (#3405)