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
sourceimpl Clone for MinerReward
impl Clone for MinerReward
sourcefn clone(&self) -> MinerReward
fn clone(&self) -> MinerReward
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
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<'de> Deserialize<'de> for MinerReward
impl<'de> Deserialize<'de> for MinerReward
sourcefn 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
sourceimpl From<MinerReward> for MinerReward
impl From<MinerReward> for MinerReward
sourcefn from(core: MinerReward) -> Self
fn from(core: MinerReward) -> Self
Converts to this type from the input type.
sourceimpl From<MinerReward> for MinerReward
impl From<MinerReward> for MinerReward
sourcefn from(json: MinerReward) -> Self
fn from(json: MinerReward) -> Self
Converts to this type from the input type.
sourceimpl Hash for MinerReward
impl Hash for MinerReward
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 !=
.
sourceimpl Serialize for MinerReward
impl Serialize for MinerReward
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more