Available on crate features
test-utils only.Expand description
Test helper impls for transactions
Functionsยง
- buffer_
hash_ to_ tx_ fetcher - Announces a hash to the tx fetcher on behalf of the given peer, without sending a request.
- new_
mock_ session - Mock a new session, returns (peer, channel-to-send-get-pooled-tx-response-on).
- new_
mock_ session_ with_ capacity - Mock a new session whose request channel buffers up to
capacityrequests, returns (peer, channel-to-send-get-pooled-tx-response-on). - new_
tx_ manager - A new tx manager for testing.
- new_
tx_ manager_ with_ config - A new tx manager for testing with the given config.