Struct forest_actor::miner::MinerInfo [−][src]
pub struct MinerInfo { pub owner: Address, pub worker: Address, pub control_addresses: Vec<Address>, pub pending_worker_key: Option<WorkerKeyChange>, pub peer_id: Vec<u8>, pub multi_address: Vec<BytesDe>, pub window_post_proof_type: RegisteredPoStProof, pub sector_size: SectorSize, pub window_post_partition_sectors: u64, pub consensus_fault_elapsed: ChainEpoch, pub pending_owner_address: Option<Address>, }
Expand description
Static information about miner
Fields
owner: Address
Account that owns this miner
- Income and returned collateral are paid to this address
- This address is also allowed to change the worker address for the miner
worker: Address
Worker account for this miner This will be the key that is used to sign blocks created by this miner, and sign messages sent on behalf of this miner to commit sectors, submit PoSts, and other day to day miner activities
control_addresses: Vec<Address>
Additional addresses that are permitted to submit messages controlling this actor (optional).
pending_worker_key: Option<WorkerKeyChange>
Optional worker key to update at an epoch
peer_id: Vec<u8>
Libp2p identity that should be used when connecting to this miner
multi_address: Vec<BytesDe>
Vector of byte arrays representing Libp2p multi-addresses used for establishing a connection with this miner.
window_post_proof_type: RegisteredPoStProof
The proof type used by this miner for sealing sectors.
sector_size: SectorSize
Amount of space in each sector committed to the network by this miner
window_post_partition_sectors: u64
The number of sectors in each Window PoSt partition (proof). This is computed from the proof type and represented here redundantly.
consensus_fault_elapsed: ChainEpoch
The next epoch this miner is eligible for certain permissioned actor methods and winning block elections as a result of being reported for a consensus fault.
pending_owner_address: Option<Address>
A proposed new owner account for this miner. Must be confirmed by a message from the pending address itself.
Implementations
Trait Implementations
impl<'de> Deserialize<'de> for MinerInfo
[src]
impl<'de> Deserialize<'de> for MinerInfo
[src]fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for MinerInfo
[src]
Auto Trait Implementations
impl RefUnwindSafe for MinerInfo
impl Send for MinerInfo
impl Sync for MinerInfo
impl Unpin for MinerInfo
impl UnwindSafe for MinerInfo
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,