Skip to content

Commit

Permalink
stake-pool: Add comment to validator stake info field (solana-labs#2527)
Browse files Browse the repository at this point in the history
  • Loading branch information
joncinque authored Oct 19, 2021
1 parent 1a48523 commit c5e7ae7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion stake-pool/program/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c5e7ae7

Please sign in to comment.