solana/ledger
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
..
benches removes lazy-static thread-pool from sigverify-shreds (#30787) 2023-03-20 20:33:22 +00:00
src Restrict access to Bank's HardForks (#32180) 2023-06-20 23:44:43 -05:00
tests fix typo in shred.rs (#29149) 2022-12-15 01:14:39 -06:00
.gitignore
Cargo.toml Bump rocksdb from 0.19.0 to 0.21.0 (#31590) 2023-05-13 11:46:19 -07:00
build.rs adds crds-value for broadcasting duplicate shreds through gossip (#14133) 2020-12-18 14:32:43 +00:00