Struct ckb_types::core::MinerReward
source · pub struct MinerReward {
pub primary: Capacity,
pub secondary: Capacity,
pub committed: Capacity,
pub proposal: Capacity,
}
Expand description
Fields§
§primary: Capacity
The miner receives all the primary issuance.
secondary: Capacity
The miner receives part of the secondary issuance.
committed: Capacity
The miner receives 60% of the transaction fee for each transaction committed in the block.
proposal: Capacity
The miner receives 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 MinerReward
impl Debug for MinerReward
source§impl Default for MinerReward
impl Default for MinerReward
source§fn default() -> MinerReward
fn default() -> MinerReward
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.
source§impl PartialEq<MinerReward> for MinerReward
impl PartialEq<MinerReward> for MinerReward
source§fn eq(&self, other: &MinerReward) -> bool
fn eq(&self, other: &MinerReward) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for MinerReward
impl StructuralEq for MinerReward
impl StructuralPartialEq for MinerReward
Auto Trait Implementations§
impl RefUnwindSafe for MinerReward
impl Send for MinerReward
impl Sync for MinerReward
impl Unpin for MinerReward
impl UnwindSafe for MinerReward
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