solana/program-test/tests
steviez 20a7cdd43d
Restrict access to Bank's HardForks (#32180)
* Restrict access to Bank's HardForks

Callers could previously obtain a a lock to read/write HardForks from
any Bank. This would allow any caller to modify, and creates the
opportunity for inconsistent handling of what is considered a valid hard
fork (ie too old).

This PR adds a function to Bank so consistent sanity checks can be
applied; the caller will already have a Bank as that is where they would
have obtained the HardForks from in the first place. Additionally,
change the getter to return a copy of HardForks (simple Vec).

* Allow hard fork at bank slot if bank is not yet frozen
2023-06-20 23:44:43 -05:00
..
builtins.rs
cpi.rs program-test: Add working `get_stack_height` stub call (#28451) 2022-10-18 15:09:04 -04:00
fuzz.rs clippy: Removes redundant async blocks (#31526) 2023-05-09 09:35:38 -04:00
lamports.rs program-test: Add test for moving lamports (#30637) 2023-03-08 12:43:26 +01:00
return_data.rs
spl.rs program-test: Add token-2022 to default programs (#29878) 2023-01-26 01:52:55 +01:00
sysvar.rs
sysvar_last_restart_slot.rs Restrict access to Bank's HardForks (#32180) 2023-06-20 23:44:43 -05:00
warp.rs Enable partitioned epoch reward by feature id (#32174) 2023-06-20 12:12:50 -05:00