pub struct EthashParams {
Show 22 fields pub minimum_difficulty: Uint, pub difficulty_bound_divisor: Uint, pub difficulty_increment_divisor: Option<Uint>, pub metropolis_difficulty_increment_divisor: Option<Uint>, pub duration_limit: Option<Uint>, pub homestead_transition: Option<Uint>, pub block_reward: Option<BlockReward>, pub block_reward_contract_transition: Option<Uint>, pub block_reward_contract_address: Option<Address>, pub block_reward_contract_code: Option<Bytes>, pub dao_hardfork_transition: Option<Uint>, pub dao_hardfork_beneficiary: Option<Address>, pub dao_hardfork_accounts: Option<Vec<Address>>, pub difficulty_hardfork_transition: Option<Uint>, pub difficulty_hardfork_bound_divisor: Option<Uint>, pub bomb_defuse_transition: Option<Uint>, pub eip100b_transition: Option<Uint>, pub ecip1017_era_rounds: Option<Uint>, pub difficulty_bomb_delays: Option<BTreeMap<Uint, Uint>>, pub expip2_transition: Option<Uint>, pub expip2_duration_limit: Option<Uint>, pub progpow_transition: Option<Uint>,
}
Expand description

Deserializable doppelganger of EthashParams.

Fields

minimum_difficulty: Uint

See main EthashParams docs.

difficulty_bound_divisor: Uint

See main EthashParams docs.

difficulty_increment_divisor: Option<Uint>

See main EthashParams docs.

metropolis_difficulty_increment_divisor: Option<Uint>

See main EthashParams docs.

duration_limit: Option<Uint>

See main EthashParams docs.

homestead_transition: Option<Uint>

See main EthashParams docs.

block_reward: Option<BlockReward>

Reward per block in wei.

block_reward_contract_transition: Option<Uint>

Block at which the block reward contract should start being used.

block_reward_contract_address: Option<Address>

Block reward contract address (setting the block reward contract overrides all other block reward parameters).

block_reward_contract_code: Option<Bytes>

Block reward code. This overrides the block reward contract address.

dao_hardfork_transition: Option<Uint>

See main EthashParams docs.

dao_hardfork_beneficiary: Option<Address>

See main EthashParams docs.

dao_hardfork_accounts: Option<Vec<Address>>

See main EthashParams docs.

difficulty_hardfork_transition: Option<Uint>

See main EthashParams docs.

difficulty_hardfork_bound_divisor: Option<Uint>

See main EthashParams docs.

bomb_defuse_transition: Option<Uint>

See main EthashParams docs.

eip100b_transition: Option<Uint>

See main EthashParams docs.

ecip1017_era_rounds: Option<Uint>

See main EthashParams docs.

difficulty_bomb_delays: Option<BTreeMap<Uint, Uint>>

Delays of difficulty bombs.

expip2_transition: Option<Uint>

EXPIP-2 block height

expip2_duration_limit: Option<Uint>

EXPIP-2 duration limit

progpow_transition: Option<Uint>

Block to transition to progpow

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

Deserialize this value from the given Serde deserializer. Read more

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 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)

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.