Adjust staking instructions

This commit is contained in:
Michael Vines 2019-08-09 22:15:42 -07:00
parent 5884469d11
commit fe83c66686
No known key found for this signature in database
GPG Key ID: 33F4FDEC4E0E88BD
1 changed files with 5 additions and 10 deletions

View File

@ -2,20 +2,15 @@
When your validator starts, it will have no stake, which means it will When your validator starts, it will have no stake, which means it will
ineligible to become leader. ineligible to become leader.
Adding stake can be accomplished by using the `solana-wallet` CLI. First Adding stake can be accomplished by using the `solana-wallet` CLI
obtain the public key for your validator's vote account with:
```bash Fire create a stake account keypair with `solana-keygen`:
$ solana-keygen pubkey ~/validator-config/vote-keypair.json
```
This will output a base58-encoded value that looks similar to
`DhUYZR98qFLLrnHg2HWeGhBQJ9tru7nwdEfYm8L8HdR9`. Then create a stake account
keypair with `solana-keygen`:
```bash ```bash
$ solana-keygen new -o ~/validator-config/stake-keypair.json $ solana-keygen new -o ~/validator-config/stake-keypair.json
``` ```
and use the wallet's `delegate-stake` command to stake your validator with 42 lamports: and use the wallet's `delegate-stake` command to stake your validator with 42 lamports:
```bash ```bash
$ solana-wallet delegate-stake ~/validator-config/stake-keypair.json [VOTE PUBKEY] 42 $ solana-wallet delegate-stake ~/validator-config/stake-keypair.json ~/validator-vote-keypair.json 42
``` ```
Note that stake changes are applied at Epoch boundaries so it can take an hour Note that stake changes are applied at Epoch boundaries so it can take an hour
@ -23,7 +18,7 @@ or more for the change to take effect.
Stake can be deactivate by running: Stake can be deactivate by running:
```bash ```bash
$ solana-wallet deactivate-stake ~/validator-config/stake-keypair.json [VOTE PUBKEY] $ solana-wallet deactivate-stake ~/validator-config/stake-keypair.json ~/validator-vote-keypair.json
``` ```
Note that a stake account may only be used once, so after deactivation, use the Note that a stake account may only be used once, so after deactivation, use the
wallet's `withdraw-stake` command to recover the previously staked lamports. wallet's `withdraw-stake` command to recover the previously staked lamports.