@@ -619,9 +619,7 @@ pub(crate) enum StakeWithdrawSource {
619
619
#[ repr( C ) ]
620
620
#[ derive( Clone , Copy , Debug , Default , PartialEq , BorshDeserialize , BorshSerialize , BorshSchema ) ]
621
621
pub struct ValidatorStakeInfo {
622
- /// Amount of active stake delegated to this validator, minus the minimum
623
- /// required stake amount of rent-exemption +
624
- /// `max(crate::MINIMUM_ACTIVE_STAKE, solana_program::stake::tools::get_minimum_delegation())`.
622
+ /// Amount of lamports on the validator stake account, including rent
625
623
///
626
624
/// Note that if `last_update_epoch` does not match the current epoch then
627
625
/// this field may not be accurate
@@ -636,11 +634,11 @@ pub struct ValidatorStakeInfo {
636
634
/// Last epoch the active and transient stake lamports fields were updated
637
635
pub last_update_epoch : u64 ,
638
636
639
- /// Start of the validator transient account seed suffixess
640
- pub transient_seed_suffix_start : u64 ,
637
+ /// Transient account seed suffix, used to derive the transient stake account address
638
+ pub transient_seed_suffix : u64 ,
641
639
642
- /// Offset of the end the validator transient account seed suffixes
643
- pub transient_seed_suffix_end : u32 ,
640
+ /// Unused space, initially meant to specify the end of seed suffixes
641
+ pub unused : u32 ,
644
642
645
643
/// Validator account seed suffix
646
644
pub validator_seed_suffix : u32 , // really `Option<NonZeroU32>` so 0 is `None`
@@ -942,8 +940,8 @@ mod test {
942
940
active_stake_lamports: u64 :: from_le_bytes( [ 255 ; 8 ] ) ,
943
941
transient_stake_lamports: u64 :: from_le_bytes( [ 128 ; 8 ] ) ,
944
942
last_update_epoch: u64 :: from_le_bytes( [ 64 ; 8 ] ) ,
945
- transient_seed_suffix_start : 0 ,
946
- transient_seed_suffix_end : 0 ,
943
+ transient_seed_suffix : 0 ,
944
+ unused : 0 ,
947
945
validator_seed_suffix: 0 ,
948
946
} ,
949
947
ValidatorStakeInfo {
@@ -952,8 +950,8 @@ mod test {
952
950
active_stake_lamports: 998877665544 ,
953
951
transient_stake_lamports: 222222222 ,
954
952
last_update_epoch: 11223445566 ,
955
- transient_seed_suffix_start : 0 ,
956
- transient_seed_suffix_end : 0 ,
953
+ transient_seed_suffix : 0 ,
954
+ unused : 0 ,
957
955
validator_seed_suffix: 0 ,
958
956
} ,
959
957
ValidatorStakeInfo {
@@ -962,8 +960,8 @@ mod test {
962
960
active_stake_lamports: 0 ,
963
961
transient_stake_lamports: 0 ,
964
962
last_update_epoch: 999999999999999 ,
965
- transient_seed_suffix_start : 0 ,
966
- transient_seed_suffix_end : 0 ,
963
+ transient_seed_suffix : 0 ,
964
+ unused : 0 ,
967
965
validator_seed_suffix: 0 ,
968
966
} ,
969
967
] ,
0 commit comments