[][src]Module solana_vote_api::vote_state

Vote state, vote program Receive and processes votes from validators

Structs

Lockout
Vote
VoteState

Constants

INITIAL_LOCKOUT
MAX_EPOCH_CREDITS_HISTORY
MAX_LOCKOUT_HISTORY

Functions

authorize_voter

Authorize the given pubkey to sign votes. This may be called multiple times, but will implicitly withdraw authorization from the previously authorized voter. The default voter is the owner of the vote account's pubkey.

create_account
create_bootstrap_leader_account
initialize_account

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

process_votes
withdraw

Withdraw funds from the vote account

Type Definitions

Epoch

Epoch is a unit of time a given leader schedule is honored, some number of Slots. Use a u64 to count them.

Slot

Slot is a unit of time given to a leader for encoding, is some some number of Ticks long. Use a u64 to count them.