forked from solana-labs/solana
-
Notifications
You must be signed in to change notification settings - Fork 320
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 d791c9a) # Conflicts: # builtins-default-costs/src/lib.rs # cost-model/src/cost_model.rs * fix merge conflicts --------- Co-authored-by: Tao Zhu <[email protected]> Co-authored-by: Tao Zhu <[email protected]>
- Loading branch information
1 parent
27ce859
commit f9d4939
Showing
5 changed files
with
215 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters