solana/sdk
Tao Zhu 414d904959
Reject blocks for costs above the max block cost (#18994)
* added realtime cost checking logic to reject block that would exceed max limit:
- defines max limits at block_cost_limits.rs
- right after each bath's execution, accumulate its cost and check again
  limit, return error if limit is exceeded

* update abi that changed due to adding additional TransactionError

* To avoid counting stats mltiple times, only accumulate execute-timing when a bank is completed

* gate it by a feature

* move cost const def into block_cost_limits.rs

* redefine the cost for signature and account access, removed signer part as it is not well defined for now

* check if per_program_timings of execute_timings before sending
2021-08-12 10:48:47 -05:00
..
benches Move transaction sanitization earlier in the pipeline (#18655) 2021-07-15 22:51:27 -05:00
bpf Bump bpf-tools to v1.15 (#19117) 2021-08-10 07:21:14 +00:00
cargo-build-bpf Bump bpf-tools to v1.15 (#19117) 2021-08-10 07:21:14 +00:00
cargo-test-bpf Reword help of generate-child-script-on-failure cargo bpf tools option (#18685) 2021-07-15 03:31:33 +00:00
docker-solana bump recommended maps/nofiles 2021-08-04 11:15:18 -06:00
macro Add macros for deprecacted ids (#18907) 2021-07-26 20:54:46 -07:00
program Version transaction message and add new message format (#18725) 2021-08-09 22:03:39 -07:00
src Reject blocks for costs above the max block cost (#18994) 2021-08-12 10:48:47 -05:00
.gitignore
Cargo.toml chore: bump curve25519-dalek from 3.1.0 to 3.2.0 (#19051) 2021-08-04 09:14:32 -06:00
README.md Add sdk and program READMEs (#18154) 2021-06-23 21:22:35 +00:00
Xargo.toml Initial population of solana-program-sdk 2020-10-24 08:37:55 -07:00
build.rs Remove frozen ABI modules from solana-sdk 2020-10-20 16:11:30 -07:00

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 Discord