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
sourceimpl Debug for EthashParams
impl Debug for EthashParams
sourceimpl From<EthashParams> for EthashParams
impl From<EthashParams> for EthashParams
sourcefn from(p: EthashParams) -> Self
fn from(p: EthashParams) -> Self
Performs the conversion.
sourceimpl PartialEq<EthashParams> for EthashParams
impl PartialEq<EthashParams> for EthashParams
sourcefn eq(&self, other: &EthashParams) -> bool
fn eq(&self, other: &EthashParams) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &EthashParams) -> bool
fn ne(&self, other: &EthashParams) -> bool
This method tests for !=
.
impl StructuralPartialEq for EthashParams
Auto Trait Implementations
impl RefUnwindSafe for EthashParams
impl Send for EthashParams
impl Sync for EthashParams
impl Unpin for EthashParams
impl UnwindSafe for EthashParams
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more