Struct forest_actor::miner::ExpirationSet
source · [−]pub struct ExpirationSet {
pub on_time_sectors: BitField,
pub early_sectors: BitField,
pub on_time_pledge: TokenAmount,
pub active_power: PowerPair,
pub faulty_power: PowerPair,
}
Expand description
ExpirationSet is a collection of sector numbers that are expiring, either due to expected “on-time” expiration at the end of their life, or unexpected “early” termination due to being faulty for too long consecutively. Note that there is not a direct correspondence between on-time sectors and active power; a sector may be faulty but expiring on-time if it faults just prior to expected termination. Early sectors are always faulty, and active power always represents on-time sectors.
Fields
on_time_sectors: BitField
Sectors expiring “on time” at the end of their committed life
early_sectors: BitField
Sectors expiring “early” due to being faulty for too long
on_time_pledge: TokenAmount
Pledge total for the on-time sectors
active_power: PowerPair
Power that is currently active (not faulty)
faulty_power: PowerPair
Power that is currently faulty
Implementations
Adds sectors and power to the expiration set in place.
Removes sectors and power from the expiration set in place.
A set is empty if it has no sectors. The power and pledge are not checked, but are expected to be zero.
validates a set of assertions that must hold for expiration sets
Trait Implementations
Returns the “default value” for a type. Read more
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for ExpirationSet
impl Send for ExpirationSet
impl Sync for ExpirationSet
impl Unpin for ExpirationSet
impl UnwindSafe for ExpirationSet
Blanket Implementations
Mutably borrows from an owned value. Read more