Expand description
Vote state, vote program Receive and processes votes from validators
Modules§
Structs§
- Block
Timestamp - CircBuf
- Landed
Vote - Lockout
- Tower
Sync - Vote
- Vote
Authorize Checked With Seed Args - Vote
Authorize With Seed Args - Vote
Init - Vote
State - Vote
State1_ 14_ 11 - Vote
State Update
Enums§
Constants§
- INITIAL_
LOCKOUT - MAX_
EPOCH_ CREDITS_ HISTORY - MAX_
LOCKOUT_ HISTORY - VOTE_
CREDITS_ GRACE_ SLOTS - VOTE_
CREDITS_ MAXIMUM_ PER_ SLOT
Functions§
- authorize
- Authorize the given pubkey to withdraw or sign votes. This may be called multiple times, but will implicitly withdraw authorization from the previously authorized key
- create_
account - create_
account_ with_ authorized - do_
process_ vote_ state_ update - from
- 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
- is_
commission_ increase - Given a proposed new commission, returns true if this would be a commission increase, false otherwise
- is_
commission_ update_ allowed - Given the current slot and epoch schedule, determine if a commission change is allowed
- process_
new_ vote_ state - process_
slot_ vote_ unchecked - process_
tower_ sync - process_
vote - process_
vote_ state_ update - process_
vote_ unchecked - “unchecked” functions used by tests and Tower
- process_
vote_ unfiltered - process_
vote_ with_ account - to
- update_
commission - Update the vote account’s commission
- update_
validator_ identity - Update the node_pubkey, requires signature of the authorized voter
- withdraw
- Withdraw funds from the vote account