solana/program-runtime
Tao Zhu 510b6b949f
Split compute budget instructions process from struct (#33852)
* Split compute budget instruction processing from ComputeBudget struct itself, so CB instructions can be processed elsewhere without involving ComputeBudget

* updated tests

* avoid built ComputeBudget from dated ComputeBudgetLimits in this refactoring PR

* Clean-up program-runtime/src/compute_budget_processor.rs

* Add test for a corner case that deprecated instruction is used to request units greater than max limit;
* Update code to handle the corner case.
2023-10-26 22:12:56 -05:00
..
src Split compute budget instructions process from struct (#33852) 2023-10-26 22:12:56 -05:00
Cargo.toml replaces assert!(matches!(...)) with assert_matches!(...) (#33068) 2023-08-30 13:48:27 -04:00
build.rs