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 JsonSchema for MinerReward
impl JsonSchema for MinerReward
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreSource§impl PartialEq for MinerReward
impl PartialEq for MinerReward
Source§impl Serialize for MinerReward
impl Serialize for MinerReward
impl Eq for MinerReward
impl StructuralPartialEq for MinerReward
Auto Trait Implementations§
impl Freeze for MinerReward
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)