solana_vote_program::vote_state

Function update_commission

source
pub fn update_commission<S: BuildHasher>(
    vote_account: &mut BorrowedAccount<'_>,
    commission: u8,
    signers: &HashSet<Pubkey, S>,
    epoch_schedule: &EpochSchedule,
    clock: &Clock,
    feature_set: &FeatureSet,
) -> Result<(), InstructionError>
Expand description

Update the vote account’s commission