solana/sdk
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 AccountSharedData: optimize set_data_from_slice 2022-09-23 11:31:33 +01:00
bpf Add alt_bn128 syscall tests (and fix related issues) (#31436) 2023-05-22 14:05:10 -07:00
cargo-build-bpf Fix cargo-build-bpf removing a wrong command line option (#30848) 2023-03-22 09:37:33 -07:00
cargo-build-sbf Bump version to 1.17 (#31806) 2023-05-30 15:04:47 -05:00
cargo-test-bpf Update references to platform-tools (#30764) 2023-03-22 07:41:40 -07:00
cargo-test-sbf [cargo-test-sbf] Rename sbf-tools to platform-tools and use sbfv1 (#30927) 2023-03-28 20:30:14 +09:00
docker-solana
gen-headers chore: workspace inheritance (#29893) 2023-02-23 22:01:54 +08:00
macro Bump syn from 1.0.109 to 2.0.5 (#31263) 2023-04-24 22:18:51 -07:00
program Simd 47 syscall sysvar last restart slot (#31957) 2023-06-16 20:14:02 +00:00
sbf Simd 47 syscall sysvar last restart slot (#31957) 2023-06-16 20:14:02 +00:00
src Restrict access to Bank's HardForks (#32180) 2023-06-20 23:44:43 -05:00
tests
.gitignore
Cargo.toml chore: workspace inheritance (#29893) 2023-02-23 22:01:54 +08:00
README.md Update discord invite links (#30909) 2023-03-29 09:14:22 -07:00
build.rs
package.json

README.md

Solana

Solana SDK

Use the Solana SDK Crate to write client side applications in Rust. If writing on-chain programs, use the Solana Program Crate instead.

More information about Solana is available in the Solana documentation.

The Solana Program Library provides examples of how to use this crate.

Still have questions? Ask us on Stack Exchange