Skip to content

Commit

Permalink
Accounting migrating builtin programs default Compute Unit Limit with…
Browse files Browse the repository at this point in the history
… feature status (#3975)

* Accounting migrating builtin programs default Compute Unit Limit with its feature gate status

* Declare Non/migrating buiiltins in const array, eleminates heap allocation (Vec<>) per transaction

* updates for review commients

add explicit positional information to migrating builtin feature obj

update developer notes, added static_assertion to validate no new items are added, add enum type

* use enum to separately define migrating and not-migrating builtins

* rename for clarity
  • Loading branch information
tao-stones authored Dec 12, 2024
1 parent 9be38bf commit 9379fbc
Show file tree
Hide file tree
Showing 6 changed files with 448 additions and 92 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions builtins-default-costs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ name = "solana_builtins_default_costs"

[dev-dependencies]
rand = "0.8.5"
static_assertions = { workspace = true }

[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
Expand All @@ -44,6 +45,7 @@ frozen-abi = [
"dep:solana-frozen-abi",
"solana-vote-program/frozen-abi",
]
dev-context-only-utils = []

[lints]
workspace = true
Loading

0 comments on commit 9379fbc

Please sign in to comment.