Make test_next_leader_slot_next_epoch() aware of stake minimum delegation (#24660)

This commit is contained in:
Brooks Prumo 2022-04-26 08:31:06 -04:00 committed by GitHub
parent 08bb98450f
commit edf3f05ab5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 1 deletions

1
Cargo.lock generated
View File

@ -5023,6 +5023,7 @@ dependencies = [
"solana-rayon-threadlimit",
"solana-runtime",
"solana-sdk 1.11.0",
"solana-stake-program",
"solana-storage-bigtable",
"solana-storage-proto",
"solana-transaction-status",

View File

@ -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" }

View File

@ -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();

View File

@ -4552,6 +4552,7 @@ dependencies = [
"solana-rayon-threadlimit",
"solana-runtime",
"solana-sdk 1.11.0",
"solana-stake-program",
"solana-storage-bigtable",
"solana-storage-proto",
"solana-transaction-status",