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 seal_proof_type: RegisteredSealProof,
    pub sector_size: SectorSize,
    pub window_post_partition_sectors: u64,
}

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.

seal_proof_type: RegisteredSealProof

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.

Implementations

impl MinerInfo[src]

pub fn new(
    owner: Address,
    worker: Address,
    control_addresses: Vec<Address>,
    peer_id: Vec<u8>,
    multi_address: Vec<BytesDe>,
    seal_proof_type: RegisteredSealProof
) -> Result<Self, String>
[src]

Trait Implementations

impl Debug for MinerInfo[src]

impl<'de> Deserialize<'de> for MinerInfo[src]

impl PartialEq<MinerInfo> for MinerInfo[src]

impl Serialize for MinerInfo[src]

impl StructuralPartialEq for MinerInfo[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,