The funder is not a staker
This commit is contained in:
@@ -172,7 +172,7 @@ impl LocalCluster {
|
||||
let vote_account_user_data = client.get_account_userdata(&vote_account);
|
||||
if let Ok(Some(vote_account_user_data)) = vote_account_user_data {
|
||||
if let Ok(vote_state) = VoteState::deserialize(&vote_account_user_data) {
|
||||
if vote_state.delegate_id == from_account.pubkey() {
|
||||
if vote_state.delegate_id == vote_account {
|
||||
return Ok(());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user