pub fn build_default_gossip_config() -> GossipConfig {
    GossipConfig {
        max_artifact_streams_per_peer: MAX_ARTIFACT_STREAMS_PER_PEER,
        max_chunk_wait_ms: MAX_CHUNK_WAIT_MS,
        max_duplicity: MAX_DUPLICITY,
        max_chunk_size: MAX_CHUNK_SIZE,
        receive_check_cache_size: RECEIVE_CHECK_PEER_SET_SIZE,
        pfn_evaluation_period_ms: PFN_EVALUATION_PERIOD_MS,
        registry_poll_period_ms: REGISTRY_POLL_PERIOD_MS,
        retransmission_request_ms: RETRANSMISSION_REQUEST_MS,
        advert_config: Some(GossipAdvertConfig {
            best_effort_percentage: ADVERT_BEST_EFFORT_PERCENTAGE,
        }),
    }
}
/// Helper function to build a gossip config using default values.
Helper function to build a gossip config using default values.
Helper function to build a gossip config using default values .
pub fn build_default_gossip_config() -> GossipConfig {
    GossipConfig {
        max_artifact_streams_per_peer: MAX_ARTIFACT_STREAMS_PER_PEER,
        max_chunk_wait_ms: MAX_CHUNK_WAIT_MS,
        max_duplicity: MAX_DUPLICITY,
        max_chunk_size: MAX_CHUNK_SIZE,
        receive_check_cache_size: RECEIVE_CHECK_PEER_SET_SIZE,
        pfn_evaluation_period_ms: PFN_EVALUATION_PERIOD_MS,
        registry_poll_period_ms: REGISTRY_POLL_PERIOD_MS,
        retransmission_request_ms: RETRANSMISSION_REQUEST_MS,
        advert_config: Some(GossipAdvertConfig {
            best_effort_percentage: ADVERT_BEST_EFFORT_PERCENTAGE,
        }),
    }
}
pub fn build_default_gossip_config ( ) -> GossipConfig { GossipConfig { max_artifact_streams_per_peer : MAX_ARTIFACT_STREAMS_PER_PEER , max_chunk_wait_ms : MAX_CHUNK_WAIT_MS , max_duplicity : MAX_DUPLICITY , max_chunk_size : MAX_CHUNK_SIZE , receive_check_cache_size : RECEIVE_CHECK_PEER_SET_SIZE , pfn_evaluation_period_ms : PFN_EVALUATION_PERIOD_MS , registry_poll_period_ms : REGISTRY_POLL_PERIOD_MS , retransmission_request_ms : RETRANSMISSION_REQUEST_MS , advert_config : Some ( GossipAdvertConfig { best_effort_percentage : ADVERT_BEST_EFFORT_PERCENTAGE , } ) , } }
Helper function to build a gossip config using default values.
Helper function to build a gossip config using default values .