[][src]Struct ckb_types::core::BlockReward

pub struct BlockReward {
    pub total: Capacity,
    pub primary: Capacity,
    pub secondary: Capacity,
    pub tx_fee: Capacity,
    pub proposal_reward: Capacity,
}

Fields

total: Capacity

The total block reward.

primary: Capacity

The primary block reward.

secondary: Capacity

The secondary block reward.

Notice

  • A part of the secondary issuance goes to the miners, the ratio depends on how many CKB are used to store state.
  • And a part of the secondary issuance goes to the NervosDAO, the ratio depends on how many CKB are deposited and locked in the NervosDAO.
  • The rest of the secondary issuance is determined by the community through the governance mechanism. Before the community can reach agreement, this part of the secondary issuance is going to be burned.
tx_fee: Capacity

The transaction fees that are rewarded to miners because the transaction is committed in the block.

Notice

Miners only get 60% of the transaction fee for each transaction committed in the block.

proposal_reward: Capacity

The transaction fees that are rewarded to miners because the transaction is proposed in the block or its uncles.

Notice

Miners only get 40% of the transaction fee for each transaction proposed in the block and committed later in its active commit window.

Trait Implementations

impl Debug for BlockReward[src]

impl Default for BlockReward[src]

impl From<BlockReward> for MinerReward[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> From<T> for T[src]

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

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>,