* Check interactive signer for vote-authorize-voter-checked
* Recommend checked vote reauthorization
(cherry picked from commit 0b8fcf0808
)
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
This commit is contained in:
@@ -683,7 +683,15 @@ pub fn process_vote_authorize(
|
||||
)
|
||||
})?
|
||||
.1;
|
||||
check_current_authority(current_authorized_voter, &authorized.pubkey())?
|
||||
check_current_authority(current_authorized_voter, &authorized.pubkey())?;
|
||||
if let Some(signer) = new_authorized_signer {
|
||||
if signer.is_interactive() {
|
||||
return Err(CliError::BadParameter(format!(
|
||||
"invalid new authorized vote signer {:?}. Interactive vote signers not supported",
|
||||
new_authorized_pubkey
|
||||
)).into());
|
||||
}
|
||||
}
|
||||
}
|
||||
VoteAuthorize::Withdrawer => {
|
||||
check_current_authority(&vote_state.authorized_withdrawer, &authorized.pubkey())?
|
||||
|
Reference in New Issue
Block a user