Struct ckb_jsonrpc_types::MinerReward[][src]

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Performs the conversion.

Performs the conversion.

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.