Struct ckb_types::core::BlockReward
source · pub struct BlockReward {
pub total: Capacity,
pub primary: Capacity,
pub secondary: Capacity,
pub tx_fee: Capacity,
pub proposal_reward: Capacity,
}
Expand description
Details of miner rewards issued by block cellbase transaction.
§References:
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§
source§impl Debug for BlockReward
impl Debug for BlockReward
source§impl Default for BlockReward
impl Default for BlockReward
source§fn default() -> BlockReward
fn default() -> BlockReward
Returns the “default value” for a type. Read more
source§impl From<BlockReward> for MinerReward
impl From<BlockReward> for MinerReward
source§fn from(reward: BlockReward) -> Self
fn from(reward: BlockReward) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for BlockReward
impl Send for BlockReward
impl Sync for BlockReward
impl Unpin for BlockReward
impl UnwindSafe for BlockReward
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more