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

This commit is contained in:
Michael Vines
2020-06-15 14:36:47 -07:00
committed by GitHub
parent daa2e6363f
commit 296ac10b3a
3 changed files with 80 additions and 15 deletions

View File

@@ -399,7 +399,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,
@@ -2170,14 +2170,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 {