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

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

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Converts to this type from the input type.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.