stake-pool: Add comment to validator stake info field (#2527)

This commit is contained in:
Jon Cinque 2021-10-19 17:19:10 +02:00 committed by GitHub
parent 1a48523a80
commit c5e7ae736e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -532,12 +532,16 @@ impl Default for StakeStatus {
#[repr(C)]
#[derive(Clone, Copy, Debug, Default, PartialEq, BorshDeserialize, BorshSerialize, BorshSchema)]
pub struct ValidatorStakeInfo {
/// Amount of active stake delegated to this validator
/// Amount of active stake delegated to this validator, minus the minimum
/// required stake amount of rent-exemption + `crate::MINIMUM_ACTIVE_STAKE`
/// (currently 0.001 SOL).
///
/// Note that if `last_update_epoch` does not match the current epoch then
/// this field may not be accurate
pub active_stake_lamports: u64,
/// Amount of transient stake delegated to this validator
///
/// Note that if `last_update_epoch` does not match the current epoch then
/// this field may not be accurate
pub transient_stake_lamports: u64,