Function solana_core::crds_gossip::get_weight [−][src]
pub fn get_weight(
max_weight: f32,
time_since_last_selected: u32,
stake: f32
) -> f32
Computes bounded weight given some max, a time since last selected, and a stake value The minimum stake is 1 and not 0 to allow ‘time since last’ picked to factor in.