Skip to content

Commit edf3f05

Browse files
authored
Make test_next_leader_slot_next_epoch() aware of stake minimum delegation (solana-labs#24660)
1 parent 08bb984 commit edf3f05

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ledger/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ solana-program-runtime = { path = "../program-runtime", version = "=1.11.0" }
4444
solana-rayon-threadlimit = { path = "../rayon-threadlimit", version = "=1.11.0" }
4545
solana-runtime = { path = "../runtime", version = "=1.11.0" }
4646
solana-sdk = { path = "../sdk", version = "=1.11.0" }
47+
solana-stake-program = { path = "../programs/stake", version = "=1.11.0" }
4748
solana-storage-bigtable = { path = "../storage-bigtable", version = "=1.11.0" }
4849
solana-storage-proto = { path = "../storage-proto", version = "=1.11.0" }
4950
solana-transaction-status = { path = "../transaction-status", version = "=1.11.0" }

ledger/src/leader_schedule_cache.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,8 @@ mod tests {
518518
&mint_keypair,
519519
&vote_account,
520520
&validator_identity,
521-
bootstrap_validator_stake_lamports(),
521+
bootstrap_validator_stake_lamports()
522+
+ solana_stake_program::get_minimum_delegation(&bank.feature_set),
522523
);
523524
let node_pubkey = validator_identity.pubkey();
524525

programs/bpf/Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)