From cfc65daeb6bbb0962c6621a5a3bc1764da76d551 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Mei=C3=9Fner?= Date: Tue, 25 Apr 2023 23:31:04 +0200 Subject: [PATCH] Adjusts tests. --- runtime/src/bank/tests.rs | 10 +++++----- runtime/src/genesis_utils.rs | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/runtime/src/bank/tests.rs b/runtime/src/bank/tests.rs index dfed59639c8569..08869f4eea4da4 100644 --- a/runtime/src/bank/tests.rs +++ b/runtime/src/bank/tests.rs @@ -6921,25 +6921,25 @@ fn test_bank_hash_consistency() { if bank.slot == 0 { assert_eq!( bank.hash().to_string(), - "5gY6TCgB9NymbbxgFgAjvYLpXjyXiVyyruS1aEwbWKLK" + "FVZwMQ5YJiivwGctYDvPcoQrTECbUaNcmTnJeFDdb1a3" ); } if bank.slot == 32 { assert_eq!( bank.hash().to_string(), - "6uJ5C4QDXWCN39EjJ5Frcz73nnS2jMJ55KgkQff12Fqp" + "5AMuFif3LzgsBV8JXGVwdJpHbpZpYKRtcvyrfZjhMGvx" ); } if bank.slot == 64 { assert_eq!( bank.hash().to_string(), - "Ddk6ouAvSSA1U3Cw6BoKdM5v5LdRc9ShruGDzci9fKbY" + "GDmYzhnPdXoFLvbr88vPoVF5EYyUbCZJLMWBG9JJv8DQ" ); } if bank.slot == 128 { assert_eq!( bank.hash().to_string(), - "ANodC5vnedLWqeAyhcoErzR3ptNansb5YX6UTQ9cfP7S" + "J6Q2ng27mQMyDF2g7CbKSQDwZAeeaNnkUUZifax3FR9Y" ); break; } @@ -7163,7 +7163,7 @@ fn test_shrink_candidate_slots_cached() { // No more slots should be shrunk assert_eq!(bank2.shrink_candidate_slots(), 0); // alive_counts represents the count of alive accounts in the three slots 0,1,2 - assert_eq!(alive_counts, vec![11, 1, 7]); + assert_eq!(alive_counts, vec![14, 1, 7]); } #[test] diff --git a/runtime/src/genesis_utils.rs b/runtime/src/genesis_utils.rs index dcaf2157e7d04a..45acf5c9ef305e 100644 --- a/runtime/src/genesis_utils.rs +++ b/runtime/src/genesis_utils.rs @@ -26,7 +26,7 @@ pub fn bootstrap_validator_stake_lamports() -> u64 { // Number of lamports automatically used for genesis accounts pub const fn genesis_sysvar_and_builtin_program_lamports() -> u64 { - const NUM_BUILTIN_PROGRAMS: u64 = 4; + const NUM_BUILTIN_PROGRAMS: u64 = 7; const NUM_PRECOMPILES: u64 = 2; const FEES_SYSVAR_MIN_BALANCE: u64 = 946_560; const STAKE_HISTORY_MIN_BALANCE: u64 = 114_979_200;