|solana withdraw-from-vote-account| now supports ALL, and refuses to deallocate the vote account (#10602)

(cherry picked from commit 296ac10b3a)
This commit is contained in:
Michael Vines
2020-06-15 14:36:47 -07:00
parent 76a7071dba
commit d396a5f45a
3 changed files with 80 additions and 15 deletions

View File

@@ -396,7 +396,7 @@ pub enum CliCommand {
vote_account_pubkey: Pubkey,
destination_account_pubkey: Pubkey,
withdraw_authority: SignerIndex,
lamports: u64,
withdraw_amount: SpendAmount,
},
VoteAuthorize {
vote_account_pubkey: Pubkey,
@@ -2155,14 +2155,14 @@ pub fn process_command(config: &CliConfig) -> ProcessResult {
CliCommand::WithdrawFromVoteAccount {
vote_account_pubkey,
withdraw_authority,
lamports,
withdraw_amount,
destination_account_pubkey,
} => process_withdraw_from_vote_account(
&rpc_client,
config,
vote_account_pubkey,
*withdraw_authority,
*lamports,
*withdraw_amount,
destination_account_pubkey,
),
CliCommand::VoteAuthorize {