From 571dc4e387064c6aed1b9d76cad33e850e682252 Mon Sep 17 00:00:00 2001 From: Justin Starry Date: Tue, 24 Sep 2019 15:55:32 -0400 Subject: [PATCH] Update stale code references for vote program in book (#6061) --- .../cluster/stake-delegation-and-rewards.md | 21 +++++++------------ 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/book/src/cluster/stake-delegation-and-rewards.md b/book/src/cluster/stake-delegation-and-rewards.md index a81bf78dc..d496e0bfc 100644 --- a/book/src/cluster/stake-delegation-and-rewards.md +++ b/book/src/cluster/stake-delegation-and-rewards.md @@ -27,30 +27,26 @@ VoteState is the current state of all the votes the validator has submitted to t * `root_slot` - The last slot to reach the full lockout commitment necessary for rewards. * `commission` - The commission taken by this VoteState for any rewards claimed by staker's Stake accounts. This is the percentage ceiling of the reward. * Account::lamports - The accumulated lamports from the commission. These do not count as stakes. -* `authorized_vote_signer` - Only this identity is authorized to submit votes. This field can only modified by this identity. +* `authorized_voter_pubkey` - Only this identity is authorized to submit votes. This field can only modified by this identity. ### VoteInstruction::Initialize * `account[0]` - RW - The VoteState - `VoteState::authorized_vote_signer` is initialized to `account[0]` + `VoteState::authorized_voter_pubkey` is initialized to `account[0]` other VoteState members defaulted -### VoteInstruction::AuthorizeVoteSigner\(Pubkey\) +### VoteInstruction::AuthorizeVoter\(Pubkey\) + +Allows a staker to choose a signing service for its votes. That service is +responsible for ensuring the vote won't cause the staker to be slashed. * `account[0]` - RW - The VoteState - `VoteState::authorized_vote_signer` is set to to `Pubkey`, the transaction must by + `VoteState::authorized_voter_pubkey` is set to to `Pubkey`, the transaction must by - signed by the Vote account's current `authorized_vote_signer`. - - - `VoteInstruction::AuthorizeVoter` allows a staker to choose a signing service - - for its votes. That service is responsible for ensuring the vote won't cause - - the staker to be slashed. + signed by the Vote account's current `authorized_voter_pubkey`. ### VoteInstruction::Vote\(Vec\) @@ -210,4 +206,3 @@ As rewards are earned lamports can be withdrawn from a stake account. Only lampo ### Lock-up Stake accounts support the notion of lock-up, wherein the stake account balance is unavailable for withdrawal until a specified time. Lock-up is specified as a slot height, i.e. the minimum slot height that must be reached by the network before the stake account balance is available for withdrawal. -