Struct everscale_network::overlay::OverlayOptions
source · pub struct OverlayOptions {
pub max_neighbours: u32,
pub max_broadcast_log: u32,
pub broadcast_gc_interval_ms: u64,
pub overlay_peers_timeout_ms: u64,
pub max_ordinary_broadcast_len: usize,
pub broadcast_target_count: u32,
pub secondary_broadcast_target_count: u32,
pub secondary_fec_broadcast_target_count: u32,
pub fec_broadcast_wave_len: usize,
pub fec_broadcast_wave_interval_ms: u64,
pub broadcast_timeout_sec: u64,
pub force_compression: bool,
}Expand description
Overlay configuration
Fields§
§max_neighbours: u32More persistent list of peers. Used to distribute broadcasts.
Default: 200
max_broadcast_log: u32Max simultaneous broadcasts.
Default: 1000
broadcast_gc_interval_ms: u64Broadcasts GC interval. Will leave at most max_broadcast_log each iteration.
Default: 1000 ms
overlay_peers_timeout_ms: u64Neighbours or random peers update interval.
Default: 60000 ms
max_ordinary_broadcast_len: usizePackets with length bigger than this will be sent using FEC broadcast.
See Overlay::broadcast
Default: 768 bytes
broadcast_target_count: u32Max number of peers to distribute broadcast to.
Default: 5
secondary_broadcast_target_count: u32Max number of peers to redistribute ordinary broadcast to.
Default: 3
secondary_fec_broadcast_target_count: u32Max number of peers to redistribute FEC broadcast to.
Default: 3
fec_broadcast_wave_len: usizeNumber of FEC messages to send in group. There will be a short delay between them.
Default: 20
fec_broadcast_wave_interval_ms: u64Interval between FEC broadcast waves.
Default: 10 ms
broadcast_timeout_sec: u64Overlay broadcast timeout. It will be forcefully dropped if not received in this time.
Default: 60 sec
force_compression: boolWhether requests will be compressed.
Default: false
Trait Implementations§
source§impl Clone for OverlayOptions
impl Clone for OverlayOptions
source§fn clone(&self) -> OverlayOptions
fn clone(&self) -> OverlayOptions
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more