This reverts commit d06b099ecb
.
Co-authored-by: HaoranYi <haoran.yi@solana.com>
This commit is contained in:
parent
d06b099ecb
commit
39d9f8974d
|
@ -1492,8 +1492,7 @@ impl Bank {
|
|||
|
||||
#[allow(dead_code)]
|
||||
fn is_partitioned_rewards_feature_enabled(&self) -> bool {
|
||||
self.feature_set
|
||||
.is_active(&feature_set::enable_partitioned_epoch_reward::id())
|
||||
false // Will be feature later. It is convenient to have a constant fn at the moment.
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
|
|
|
@ -12604,17 +12604,6 @@ fn test_rewards_point_calculation_empty() {
|
|||
assert!(point_value.is_none());
|
||||
}
|
||||
|
||||
/// Test partitioned_reward feature enable/disable
|
||||
#[test]
|
||||
fn test_is_partitioned_reward_enable() {
|
||||
let (genesis_config, _mint_keypair) = create_genesis_config(1_000_000 * LAMPORTS_PER_SOL);
|
||||
|
||||
let mut bank = Bank::new_for_tests(&genesis_config);
|
||||
assert!(!bank.is_partitioned_rewards_feature_enabled());
|
||||
bank.activate_feature(&feature_set::enable_partitioned_epoch_reward::id());
|
||||
assert!(bank.is_partitioned_rewards_feature_enabled());
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_deactivate_epoch_reward_status() {
|
||||
let (genesis_config, _mint_keypair) = create_genesis_config(1_000_000 * LAMPORTS_PER_SOL);
|
||||
|
|
Loading…
Reference in New Issue