Skip to main content

Module transactions

Module transactions 

Source
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 capacity requests, 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.