From 8a7106bc08b6eb2574bb837675a22a0fbf904416 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Tue, 7 Dec 2021 00:58:31 +0000 Subject: [PATCH] Remove activated feature for filtering invalid stakes from rewards (#21641) (#21651) (cherry picked from commit a1adcb23b6d62c5fc0b08193a2d2c8106448c87f) Co-authored-by: Justin Starry --- runtime/src/bank.rs | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/runtime/src/bank.rs b/runtime/src/bank.rs index 53d0cf6e54b6d8..a72bdad5227469 100644 --- a/runtime/src/bank.rs +++ b/runtime/src/bank.rs @@ -2167,10 +2167,6 @@ impl Bank { thread_pool: &ThreadPool, reward_calc_tracer: Option, ) -> DashMap { - let filter_stake_delegation_accounts = self - .feature_set - .is_active(&feature_set::filter_stake_delegation_accounts::id()); - let stakes = self.stakes.read().unwrap(); let accounts = DashMap::with_capacity(stakes.vote_accounts().as_ref().len()); @@ -2226,10 +2222,9 @@ impl Bank { } // filter invalid delegation accounts - if filter_stake_delegation_accounts - && (stake_account.owner() != &solana_stake_program::id() - || (fetched_vote_account_owner.is_some() - && fetched_vote_account_owner != Some(&solana_vote_program::id()))) + if stake_account.owner() != &solana_stake_program::id() + || (fetched_vote_account_owner.is_some() + && fetched_vote_account_owner != Some(&solana_vote_program::id())) { datapoint_warn!( "bank-stake_delegation_accounts-invalid-account",