Cleanup - vote_withdraw_authority_may_change_authorized_voter (#31758)
vote_withdraw_authority_may_change_authorized_voter
This commit is contained in:
parent
996ddf602b
commit
28738c3730
|
@ -1066,14 +1066,6 @@ mod tests {
|
|||
instruction_accounts.clone(),
|
||||
Ok(()),
|
||||
);
|
||||
|
||||
// should fail, if vote_withdraw_authority_may_change_authorized_voter is disabled
|
||||
process_instruction_disabled_features(
|
||||
&instruction_data,
|
||||
transaction_accounts,
|
||||
instruction_accounts,
|
||||
Err(InstructionError::MissingRequiredSignature),
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
|
@ -801,13 +801,8 @@ pub fn authorize<S: std::hash::BuildHasher>(
|
|||
|
||||
match vote_authorize {
|
||||
VoteAuthorize::Voter => {
|
||||
let authorized_withdrawer_signer = if feature_set
|
||||
.is_active(&feature_set::vote_withdraw_authority_may_change_authorized_voter::id())
|
||||
{
|
||||
verify_authorized_signer(&vote_state.authorized_withdrawer, signers).is_ok()
|
||||
} else {
|
||||
false
|
||||
};
|
||||
let authorized_withdrawer_signer =
|
||||
verify_authorized_signer(&vote_state.authorized_withdrawer, signers).is_ok();
|
||||
|
||||
vote_state.set_new_authorized_voter(
|
||||
authorized,
|
||||
|
|
Loading…
Reference in New Issue