Remove redundant is_stake check (#19185)
This commit is contained in:
@ -5099,7 +5099,6 @@ impl Bank {
|
||||
.zip(loaded_transaction.accounts.iter())
|
||||
.filter(|(_i, (_pubkey, account))| (Stakes::is_stake(account)))
|
||||
{
|
||||
if Stakes::is_stake(account) {
|
||||
if let Some(old_vote_account) = self.stakes.write().unwrap().store(
|
||||
pubkey,
|
||||
account,
|
||||
@ -5115,7 +5114,6 @@ impl Bank {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
overwritten_vote_accounts
|
||||
}
|
||||
|
Reference in New Issue
Block a user