Skip to main content

PROBATION_HEALTH

Constant PROBATION_HEALTH 

Source
const PROBATION_HEALTH: f64 = 1e-3;
Expand description

The health published for a relayer on probation: a thousandth.

A relayer whose dead verdict has lapsed is not trusted again until a reply that is news about it comes home through it, one on a SURB minted after the verdict (see RelayerHealth::is_fresh_for). The graph scales every edge into it by this, so weighted selection draws it far less than a healthy relayer, while the planner’s uniform exploration (return_path_exploration, 10 % by default) still draws it as a candidate: that draw is the probe, and a reply on it ends the probation. Not 0, which the graph prunes, and nothing would ever probe a pruned relayer. After the relayer_health_weight exponent it stays at a few percent for weights of one half and up (a thousandth to the power one half is 3 %), and 0 switches it off with the rest of the health.