Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check EpochRewards::active within the Stake Program (#617)
* Add new StakeError variant * Add closure to return error if EpochRewards::active * Use error_during_epoch_rewards for Instructions that mutate stake accounts * Use try instead of manually matching Ok/Err * Consolidate error_during_epoch_rewards check * Add new test helper * Add test demonstrating which ix return StakeError::EpochRewardsActive * Remove single-use fn
- Loading branch information