fn calculate_voting_fees(genesis_config: &GenesisConfig, years: f64) -> u64 {
    genesis_config.fee_calculator.max_lamports_per_signature
        * years_as_slots(
            years,
            &genesis_config.poh_config.target_tick_duration,
            genesis_config.ticks_per_slot,
        ) as u64
}
// the node's account needs carry enough
//  lamports to cover TX fees for voting for one year,
//  validators can vote once per slot
the node's account needs carry enough
lamports to cover TX fees for voting for one year,
validators can vote once per slot
the node ' s account needs carry enough lamports to cover TX fees for voting for one year validators can vote once per slot
fn calculate_voting_fees(genesis_config: &GenesisConfig, years: f64) -> u64 {
    genesis_config.fee_calculator.max_lamports_per_signature
        * years_as_slots(
            years,
            &genesis_config.poh_config.target_tick_duration,
            genesis_config.ticks_per_slot,
        ) as u64
}
fn calculate_voting_fees ( genesis_config : & GenesisConfig , years : f64 ) -> u64 { genesis_config . fee_calculator . max_lamports_per_signature * years_as_slots ( years , & genesis_config . poh_config . target_tick_duration , genesis_config . ticks_per_slot , ) as u64 }
the node's account needs carry enough
lamports to cover TX fees for voting for one year,
validators can vote once per slot
the node ' s account needs carry enough lamports to cover TX fees for voting for one year validators can vote once per slot
genesis_config
&GenesisConfig
years
f64
genesis_config
&GenesisConfig
years
f64