Cleanup activated rent_for_sysvars feature (#22454)
This commit is contained in:
@@ -24,6 +24,25 @@ pub fn bootstrap_validator_stake_lamports() -> u64 {
|
||||
StakeState::get_rent_exempt_reserve(&Rent::default())
|
||||
}
|
||||
|
||||
// Number of lamports automatically used for genesis accounts
|
||||
pub const fn genesis_sysvar_and_builtin_program_lamports() -> u64 {
|
||||
const NUM_BUILTIN_PROGRAMS: u64 = 5;
|
||||
const FEES_SYSVAR_MIN_BALANCE: u64 = 946_560;
|
||||
const STAKE_HISTORY_MIN_BALANCE: u64 = 114_979_200;
|
||||
const CLOCK_SYSVAR_MIN_BALANCE: u64 = 1_169_280;
|
||||
const RENT_SYSVAR_MIN_BALANCE: u64 = 1_009_200;
|
||||
const EPOCH_SCHEDULE_SYSVAR_MIN_BALANCE: u64 = 1_120_560;
|
||||
const RECENT_BLOCKHASHES_SYSVAR_MIN_BALANCE: u64 = 42_706_560;
|
||||
|
||||
FEES_SYSVAR_MIN_BALANCE
|
||||
+ STAKE_HISTORY_MIN_BALANCE
|
||||
+ CLOCK_SYSVAR_MIN_BALANCE
|
||||
+ RENT_SYSVAR_MIN_BALANCE
|
||||
+ EPOCH_SCHEDULE_SYSVAR_MIN_BALANCE
|
||||
+ RECENT_BLOCKHASHES_SYSVAR_MIN_BALANCE
|
||||
+ NUM_BUILTIN_PROGRAMS
|
||||
}
|
||||
|
||||
pub struct ValidatorVoteKeypairs {
|
||||
pub node_keypair: Keypair,
|
||||
pub vote_keypair: Keypair,
|
||||
|
Reference in New Issue
Block a user