Skip to content

Commit

Permalink
feature gate stake program
Browse files Browse the repository at this point in the history
  • Loading branch information
2501babe committed Dec 10, 2024
1 parent c68da4b commit e4d90c2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion harness/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ version = { workspace = true }

[features]
default = []
all-builtins = [
"dep:solana-stake-program",
]
fuzz = [
"dep:mollusk-svm-fuzz-fixture",
"dep:mollusk-svm-fuzz-fs",
Expand All @@ -31,7 +34,7 @@ solana-bpf-loader-program = { workspace = true }
solana-compute-budget = { workspace = true }
solana-logger = { workspace = true }
solana-program-runtime = { workspace = true }
solana-stake-program = { workspace = true }
solana-stake-program = { workspace = true, optional = true }
solana-system-program = { workspace = true }
solana-sdk = { workspace = true }
solana-timings = { workspace = true }
Expand Down
1 change: 1 addition & 0 deletions harness/src/program.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ static BUILTINS: &[Builtin] = &[
name: "solana_bpf_loader_upgradeable_program",
entrypoint: solana_bpf_loader_program::Entrypoint::vm,
},
#[cfg(feature = "all-builtins")]
Builtin {
program_id: solana_sdk::stake::program::id(),
name: "solana_stake_program",
Expand Down

0 comments on commit e4d90c2

Please sign in to comment.