TARAXA
taraxa::DdosProtectionConfig Struct Reference

#include <network.hpp>

Public Member Functions

void validate (uint32_t delegation_delay) const
 

Public Attributes

PbftPeriod vote_accepting_periods {5}
 
PbftRound vote_accepting_rounds {5}
 
PbftStep vote_accepting_steps {0}
 
std::chrono::milliseconds packets_stats_time_period_ms {60000}
 
bool log_packets_stats = false
 
std::chrono::microseconds peer_max_packets_processing_time_us {0}
 
uint64_t peer_max_packets_queue_size_limit {0}
 
uint64_t max_packets_queue_size {0}
 
std::chrono::milliseconds queue_limit_time {5000}
 
std::chrono::milliseconds peer_disconnect_interval {5000}
 

Member Function Documentation

◆ validate()

void taraxa::DdosProtectionConfig::validate ( uint32_t  delegation_delay) const

Member Data Documentation

◆ log_packets_stats

bool taraxa::DdosProtectionConfig::log_packets_stats = false

◆ max_packets_queue_size

uint64_t taraxa::DdosProtectionConfig::max_packets_queue_size {0}

◆ packets_stats_time_period_ms

std::chrono::milliseconds taraxa::DdosProtectionConfig::packets_stats_time_period_ms {60000}

◆ peer_disconnect_interval

std::chrono::milliseconds taraxa::DdosProtectionConfig::peer_disconnect_interval {5000}

◆ peer_max_packets_processing_time_us

std::chrono::microseconds taraxa::DdosProtectionConfig::peer_max_packets_processing_time_us {0}

◆ peer_max_packets_queue_size_limit

uint64_t taraxa::DdosProtectionConfig::peer_max_packets_queue_size_limit {0}

◆ queue_limit_time

std::chrono::milliseconds taraxa::DdosProtectionConfig::queue_limit_time {5000}

◆ vote_accepting_periods

PbftPeriod taraxa::DdosProtectionConfig::vote_accepting_periods {5}

◆ vote_accepting_rounds

PbftRound taraxa::DdosProtectionConfig::vote_accepting_rounds {5}

◆ vote_accepting_steps

PbftStep taraxa::DdosProtectionConfig::vote_accepting_steps {0}

The documentation for this struct was generated from the following files: