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

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.