Function new_mock_session

Source
pub fn new_mock_session(
    peer_id: PeerId,
    version: EthVersion,
) -> (PeerMetadata<EthNetworkPrimitives>, Receiver<PeerRequest>)
Available on crate feature test-utils only.
Expand description

Mock a new session, returns (peer, channel-to-send-get-pooled-tx-response-on).