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
sourceimpl Debug for MinerReward
impl Debug for MinerReward
sourceimpl Default for MinerReward
impl Default for MinerReward
sourcefn default() -> MinerReward
fn default() -> MinerReward
Returns the “default value” for a type. Read more
sourceimpl From<BlockReward> for MinerReward
impl From<BlockReward> for MinerReward
sourcefn from(reward: BlockReward) -> Self
fn from(reward: BlockReward) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<MinerReward> for MinerReward
impl PartialEq<MinerReward> for MinerReward
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &MinerReward) -> bool
fn ne(&self, other: &MinerReward) -> bool
This method tests for !=
.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more