solana/cost-model
mergify[bot] f9d4939d1d
v2.1: Fix builtin default cost dependents on migration (backport of #3768) (#4415)
* Fix builtin default cost dependents on migration (#3768)

* Add public function to as placeholder to implement fetching default cost depends on feature_set;
Make AhashMap private

* Add BuiltinCost to help determine default cost based on migration status

* test

* fix - after migration feature activation, it should no longer be considered as builtin

* use lazy_static, avoid naked unwrap

* rename

* add comments to BUILINS

(cherry picked from commit d791c9a76cce39796e6e424ecda59dc1368631c3)

# Conflicts:
#	builtins-default-costs/src/lib.rs
#	cost-model/src/cost_model.rs

* fix merge conflicts

---------

Co-authored-by: Tao Zhu <82401714+tao-stones@users.noreply.github.com>
Co-authored-by: Tao Zhu <tao@anza.xyz>
2025-01-14 22:40:08 -06:00
..
benches TransactionCost - hold transaction reference (#3162) 2024-10-16 08:58:56 -05:00
src v2.1: Fix builtin default cost dependents on migration (backport of #3768) (#4415) 2025-01-14 22:40:08 -06:00
Cargo.toml v2.1: Fix reserve minimal compute units for builtins (backport of #3799) (#3931) 2025-01-11 11:02:36 -06:00