llarp::consensus::reachability_testing

Public Functions

Name
std::optional< RouterID > next_random(AbstractRouter * router, const time_point_t & now =clock_t::now(), bool requeue =true)
std::vector< std::pair< RouterID, int > > get_failing(const time_point_t & now =clock_t::now())
void add_failing_node(const RouterID & pk, int previous_failures =0)
void remove_node_from_failing(const RouterID & pk)
removes the public key from the failing set
void incoming_ping(const time_point_t & now =clock_t::now())
void check_incoming_tests(const time_point_t & now =clock_t::now())

Public Attributes

Name
std::normal_distribution< float > TESTING_INTERVAL
constexpr auto TESTING_BACKOFF
constexpr auto TESTING_BACKOFF_MAX
constexpr int MAX_RETESTS_PER_TICK
constexpr auto MAX_TIME_WITHOUT_PING
constexpr auto WHINING_INTERVAL

Public Functions Documentation

function next_random

std::optional< RouterID > next_random(
    AbstractRouter * router,
    const time_point_t & now =clock_t::now(),
    bool requeue =true
)

function get_failing

std::vector< std::pair< RouterID, int > > get_failing(
    const time_point_t & now =clock_t::now()
)

function add_failing_node

void add_failing_node(
    const RouterID & pk,
    int previous_failures =0
)

function remove_node_from_failing

void remove_node_from_failing(
    const RouterID & pk
)

removes the public key from the failing set

function incoming_ping

void incoming_ping(
    const time_point_t & now =clock_t::now()
)

function check_incoming_tests

void check_incoming_tests(
    const time_point_t & now =clock_t::now()
)

Public Attributes Documentation

variable TESTING_INTERVAL

std::normal_distribution< float > TESTING_INTERVAL {10.0, 3.0};

variable TESTING_BACKOFF

static constexpr auto TESTING_BACKOFF = 10s;

variable TESTING_BACKOFF_MAX

static constexpr auto TESTING_BACKOFF_MAX = 2min;

variable MAX_RETESTS_PER_TICK

static constexpr int MAX_RETESTS_PER_TICK = 4;

variable MAX_TIME_WITHOUT_PING

static constexpr auto MAX_TIME_WITHOUT_PING = 2min;

variable WHINING_INTERVAL

static constexpr auto WHINING_INTERVAL = 2min;

Updated on 2026-01-10 at 22:49:45 +0000