partitioned rewards fn for tests: force_reward_interval_end_for_tests (#32127)

partitioned rewards fn for tests
This commit is contained in:
Jeff Washington (jwash) 2023-06-14 12:59:48 -05:00 committed by GitHub
parent 4eb7db8737
commit a1ce3cbaa3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -1503,7 +1503,6 @@ impl Bank {
});
}
#[allow(dead_code)]
fn partitioned_epoch_rewards_config(&self) -> &PartitionedEpochRewardsConfig {
&self
.rc
@ -1559,6 +1558,12 @@ impl Bank {
RewardInterval::OutsideInterval
}
}
/// For testing only
pub fn force_reward_interval_end_for_tests(&mut self) {
self.epoch_reward_status = EpochRewardStatus::Inactive;
}
fn _new_from_parent(
parent: &Arc<Bank>,
collector_id: &Pubkey,