diff --git a/runtime/src/bank.rs b/runtime/src/bank.rs index bccfa595ac..e620c0b803 100644 --- a/runtime/src/bank.rs +++ b/runtime/src/bank.rs @@ -1840,7 +1840,7 @@ impl Bank { fields.epoch, ))), check_program_modification_slot: false, - epoch_reward_status: EpochRewardStatus::default(), + epoch_reward_status: fields.epoch_reward_status, }; bank.finish_init( genesis_config, diff --git a/runtime/src/bank/serde_snapshot.rs b/runtime/src/bank/serde_snapshot.rs index ca6c6ee6ad..df51d31e56 100644 --- a/runtime/src/bank/serde_snapshot.rs +++ b/runtime/src/bank/serde_snapshot.rs @@ -411,7 +411,7 @@ mod tests { ); // assert epoch_reward_status is the same as the set epoch reward status - let epoch_reward_status = bank + let epoch_reward_status = dbank .get_epoch_reward_status_to_serialize() .unwrap_or(&EpochRewardStatus::Inactive); if let Some(rewards) = epoch_reward_status_active { @@ -504,7 +504,7 @@ mod tests { ); // assert epoch_reward_status is the same as the set epoch reward status - let epoch_reward_status = bank + let epoch_reward_status = dbank .get_epoch_reward_status_to_serialize() .unwrap_or(&EpochRewardStatus::Inactive); if let Some(rewards) = epoch_reward_status_active { @@ -593,7 +593,7 @@ mod tests { assert_eq!(0, dbank.fee_rate_governor.lamports_per_signature); // epoch_reward status should default to `Inactive` - let epoch_reward_status = bank + let epoch_reward_status = dbank .get_epoch_reward_status_to_serialize() .unwrap_or(&EpochRewardStatus::Inactive); assert_matches!(epoch_reward_status, EpochRewardStatus::Inactive);