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
sourceimpl Clone for EthashParams
impl Clone for EthashParams
sourcefn clone(&self) -> EthashParams
fn clone(&self) -> EthashParams
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for EthashParams
impl Debug for EthashParams
sourceimpl<'de> Deserialize<'de> for EthashParams
impl<'de> Deserialize<'de> for EthashParams
sourcefn 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
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more