Function solana_vote_program::vote_state::initialize_account [−][src]
pub fn initialize_account<S: BuildHasher>(
vote_account: &KeyedAccount<'_>,
vote_init: &VoteInit,
signers: &HashSet<Pubkey, S>,
clock: &Clock,
check_data_size: bool
) -> Result<(), InstructionError>
Initialize the vote_state for a vote account Assumes that the account is being init as part of a account creation or balance transfer and that the transaction must be signed by the staker’s keys