pub struct EpochRewards {
pub distribution_starting_block_height: u64,
pub num_partitions: u64,
pub parent_blockhash: [u8; 32],
pub total_points: u128,
pub total_rewards: u64,
pub distributed_rewards: u64,
pub active: bool,
}Expand description
EpochRewards sysvar data (SIMD-0118).
Surfaces the partitioned-rewards distribution state for the current epoch: how many lamports are being paid out, how far distribution has progressed, and whether the rewards period is still active. Staking and airdrop programs read it to gate behaviour during the distribution window.
Fields§
§distribution_starting_block_height: u64First block height at which rewards distribution begins this epoch.
num_partitions: u64Number of partitions the distribution is split across.
parent_blockhash: [u8; 32]Blockhash of the parent of the epoch’s first block.
total_points: u128Total rewards points calculated for the epoch.
total_rewards: u64Total rewards (lamports) calculated for the epoch.
distributed_rewards: u64Rewards (lamports) distributed so far this epoch.
active: boolWhether the rewards period (calculation + distribution) is active.
Trait Implementations§
Source§impl Clone for EpochRewards
impl Clone for EpochRewards
impl Copy for EpochRewards
Source§impl Debug for EpochRewards
impl Debug for EpochRewards
Source§impl Default for EpochRewards
impl Default for EpochRewards
impl Eq for EpochRewards
Source§impl PartialEq for EpochRewards
impl PartialEq for EpochRewards
impl StructuralPartialEq for EpochRewards
Auto Trait Implementations§
impl Freeze for EpochRewards
impl RefUnwindSafe for EpochRewards
impl Send for EpochRewards
impl Sync for EpochRewards
impl Unpin for EpochRewards
impl UnsafeUnpin for EpochRewards
impl UnwindSafe for EpochRewards
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more