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

impl MinerInfo[src]

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

Trait Implementations

impl Debug for MinerInfo[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl<'de> Deserialize<'de> for MinerInfo[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 PartialEq<MinerInfo> for MinerInfo[src]

fn eq(&self, other: &MinerInfo) -> bool[src]

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

fn ne(&self, other: &MinerInfo) -> bool[src]

This method tests for !=.

impl Serialize for MinerInfo[src]

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
    S: Serializer
[src]

Serialize this value into the given Serde serializer. Read more

impl StructuralPartialEq for MinerInfo[src]

Auto Trait Implementations

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> Pointable for T

pub const ALIGN: usize

The alignment of pointer.

type Init = T

The type for initializers.

pub unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more

pub unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more

pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more

pub unsafe fn drop(ptr: usize)

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

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

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]