a21fc3f303
* Pass the sum of consumed compute units to cost_tracker * cost model tracks builtins and bpf programs separately, enabling adjust block cost by actual bpf programs execution costs * Copied nightly-only experimental `checked_add_(un)signed` implementation to sdk * Add function to update cost tracker with execution cost adjustment * Review suggestion - using enum instead of struct for CommitTransactionDetails Co-authored-by: Justin Starry <justin.m.starry@gmail.com> * review - rename variable to distinguish accumulated_consumed_units from individual compute_units_consumed * not to use signed integer operations * Review - using saturating_add_assign!(), and checked_*().unwrap_or() * Review - using Ordering enum to cmp * replace checked_ with saturating_ * review - remove unnecessary Option<> * Review - add function to report number of non-zero units account to metrics |
||
---|---|---|
.. | ||
src | ||
.gitignore | ||
Cargo.toml |