Struct ckb_jsonrpc_types::MinerReward
source · pub struct MinerReward {
pub primary: Capacity,
pub secondary: Capacity,
pub committed: Capacity,
pub proposal: Capacity,
}
Expand description
Block rewards for miners.
Fields§
§primary: Capacity
The primary base block reward allocated to miners.
secondary: Capacity
The secondary base block reward allocated to miners.
committed: Capacity
The transaction fees that are rewarded to miners because the transaction is committed in the block.
Miners get 60% of the transaction fee for each transaction committed in the block.
proposal: Capacity
The transaction fees that are rewarded to miners because the transaction is proposed in the block or its uncles.
Miners 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 Clone for MinerReward
impl Clone for MinerReward
source§fn clone(&self) -> MinerReward
fn clone(&self) -> MinerReward
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§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<'de> Deserialize<'de> for MinerReward
impl<'de> Deserialize<'de> for MinerReward
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<MinerReward> for MinerReward
impl From<MinerReward> for MinerReward
source§fn from(core: MinerReward) -> Self
fn from(core: MinerReward) -> Self
Converts to this type from the input type.
source§impl From<MinerReward> for MinerReward
impl From<MinerReward> for MinerReward
source§fn from(json: MinerReward) -> Self
fn from(json: MinerReward) -> Self
Converts to this type from the input type.
source§impl Hash for MinerReward
impl Hash for MinerReward
source§impl PartialEq for MinerReward
impl PartialEq 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 ==
.source§impl Serialize for MinerReward
impl Serialize for MinerReward
impl Eq 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