solana/runtime
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 Use option for account index bucket parameter (#19150) 2021-08-10 11:32:25 -05:00
src Reject blocks for costs above the max block cost (#18994) 2021-08-12 10:48:47 -05:00
store-tool chore: bump log from 0.4.11 to 0.4.14 (#18323) 2021-06-30 18:32:01 +00:00
tests accounts default refactoring stragglers (#19097) 2021-08-06 12:36:42 -05:00
.gitignore
Cargo.toml chore: bump libc from 0.2.98 to 0.2.99 (#19142) 2021-08-10 10:54:54 -06:00
build.rs Remove frozen ABI modules from solana-sdk 2020-10-20 16:11:30 -07:00