Skip to content

Commit

Permalink
Make test_next_leader_slot_next_epoch() aware of stake minimum delega…
Browse files Browse the repository at this point in the history
  • Loading branch information
brooksprumo authored and jeffwashington committed Apr 27, 2022
1 parent 008a59c commit 57b23a9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
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.

1 change: 1 addition & 0 deletions ledger/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ solana-program-runtime = { path = "../program-runtime", version = "=1.11.0" }
solana-rayon-threadlimit = { path = "../rayon-threadlimit", version = "=1.11.0" }
solana-runtime = { path = "../runtime", version = "=1.11.0" }
solana-sdk = { path = "../sdk", version = "=1.11.0" }
solana-stake-program = { path = "../programs/stake", version = "=1.11.0" }
solana-storage-bigtable = { path = "../storage-bigtable", version = "=1.11.0" }
solana-storage-proto = { path = "../storage-proto", version = "=1.11.0" }
solana-transaction-status = { path = "../transaction-status", version = "=1.11.0" }
Expand Down
3 changes: 2 additions & 1 deletion ledger/src/leader_schedule_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,8 @@ mod tests {
&mint_keypair,
&vote_account,
&validator_identity,
bootstrap_validator_stake_lamports(),
bootstrap_validator_stake_lamports()
+ solana_stake_program::get_minimum_delegation(&bank.feature_set),
);
let node_pubkey = validator_identity.pubkey();

Expand Down
1 change: 1 addition & 0 deletions programs/bpf/Cargo.lock

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

0 comments on commit 57b23a9

Please sign in to comment.