Trait forest_filecoin::shim::actors::miner::MinerStateExt
source · pub trait MinerStateExt {
// Required methods
fn load_sectors_ext<BS: Blockstore>(
&self,
store: &BS,
sectors: Option<&BitField>,
) -> Result<Vec<SectorOnChainInfo>>;
fn load_allocated_sector_numbers<BS: Blockstore>(
&self,
store: &BS,
) -> Result<BitField>;
fn load_precommit_on_chain_info<BS: Blockstore>(
&self,
store: &BS,
sector_number: u64,
) -> Result<Option<SectorPreCommitOnChainInfo>>;
fn recorded_deadline_info(
&self,
policy: &Policy,
current_epoch: i64,
) -> DeadlineInfo;
}
Required Methods§
sourcefn load_sectors_ext<BS: Blockstore>(
&self,
store: &BS,
sectors: Option<&BitField>,
) -> Result<Vec<SectorOnChainInfo>>
fn load_sectors_ext<BS: Blockstore>( &self, store: &BS, sectors: Option<&BitField>, ) -> Result<Vec<SectorOnChainInfo>>
Loads sectors corresponding to the bitfield. If no bitfield is passed in, return all.
sourcefn load_allocated_sector_numbers<BS: Blockstore>(
&self,
store: &BS,
) -> Result<BitField>
fn load_allocated_sector_numbers<BS: Blockstore>( &self, store: &BS, ) -> Result<BitField>
Loads the allocated sector numbers
sourcefn load_precommit_on_chain_info<BS: Blockstore>(
&self,
store: &BS,
sector_number: u64,
) -> Result<Option<SectorPreCommitOnChainInfo>>
fn load_precommit_on_chain_info<BS: Blockstore>( &self, store: &BS, sector_number: u64, ) -> Result<Option<SectorPreCommitOnChainInfo>>
Loads the precommit-on-chain info
fn recorded_deadline_info( &self, policy: &Policy, current_epoch: i64, ) -> DeadlineInfo
Object Safety§
This trait is not object safe.
Implementations on Foreign Types§
source§impl MinerStateExt for State
impl MinerStateExt for State
source§fn recorded_deadline_info(
&self,
policy: &Policy,
current_epoch: i64,
) -> DeadlineInfo
fn recorded_deadline_info( &self, policy: &Policy, current_epoch: i64, ) -> DeadlineInfo
Returns deadline calculations for the state recorded proving period and deadline. This is out of date if the a miner does not have an active miner cron