pub struct EthashParams {
Show 18 fields pub minimum_difficulty: U256, pub difficulty_bound_divisor: U256, pub difficulty_increment_divisor: u64, pub metropolis_difficulty_increment_divisor: u64, pub duration_limit: u64, pub homestead_transition: u64, pub difficulty_hardfork_transition: u64, pub difficulty_hardfork_bound_divisor: U256, pub bomb_defuse_transition: u64, pub eip100b_transition: u64, pub ecip1017_era_rounds: u64, pub block_reward: BTreeMap<BlockNumber, U256>, pub expip2_transition: u64, pub expip2_duration_limit: u64, pub block_reward_contract_transition: u64, pub block_reward_contract: Option<BlockRewardContract>, pub difficulty_bomb_delays: BTreeMap<BlockNumber, BlockNumber>, pub progpow_transition: u64,
}
Expand description

Ethash params.

Fields

minimum_difficulty: U256

Minimum difficulty.

difficulty_bound_divisor: U256

Difficulty bound divisor.

difficulty_increment_divisor: u64

Difficulty increment divisor.

metropolis_difficulty_increment_divisor: u64

Metropolis difficulty increment divisor.

duration_limit: u64

Block duration.

homestead_transition: u64

Homestead transition block number.

difficulty_hardfork_transition: u64

Transition block for a change of difficulty params (currently just bound_divisor).

difficulty_hardfork_bound_divisor: U256

Difficulty param after the difficulty transition.

bomb_defuse_transition: u64

Block on which there is no additional difficulty from the exponential bomb.

eip100b_transition: u64

Number of first block where EIP-100 rules begin.

ecip1017_era_rounds: u64

Total block number for one ECIP-1017 era.

block_reward: BTreeMap<BlockNumber, U256>

Block reward in base units.

expip2_transition: u64

EXPIP-2 block height

expip2_duration_limit: u64

EXPIP-2 duration limit

block_reward_contract_transition: u64

Block reward contract transition block.

block_reward_contract: Option<BlockRewardContract>

Block reward contract.

difficulty_bomb_delays: BTreeMap<BlockNumber, BlockNumber>

Difficulty bomb delays.

progpow_transition: u64

Block to transition to progpow

Trait Implementations

Formats the value using the given formatter. Read more

Performs the conversion.

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

This method tests for !=.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

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.