solana-with-rpc-optimizations/programs/stake
Tyera 2470b45468
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
2024-04-09 17:29:50 -06:00
..
src Check EpochRewards::active within the Stake Program (#617) 2024-04-09 17:29:50 -06:00
Cargo.toml chore: workspace inheritance (#29893) 2023-02-23 22:01:54 +08:00
build.rs