[−][src]Struct bitcoin::consensus::params::Params
Parameters that influence chain consensus.
Fields
network: NetworkNetwork for which parameters are valid.
bip16_time: u32Time when BIP16 becomes active.
bip34_height: u32Block height at which BIP34 becomes active.
bip65_height: u32Block height at which BIP65 becomes active.
bip66_height: u32Block height at which BIP66 becomes active.
rule_change_activation_threshold: u32Minimum blocks including miner confirmation of the total of 2016 blocks in a retargeting period, (nPowTargetTimespan / nPowTargetSpacing) which is also used for BIP9 deployments. Examples: 1916 for 95%, 1512 for testchains.
miner_confirmation_window: u32Number of blocks with the same set of rules.
pow_limit: Uint256Proof of work limit value. It contains the lowest possible difficulty.
pow_target_spacing: u64Expected amount of time to mine one block.
pow_target_timespan: u64Difficulty recalculation interval.
allow_min_difficulty_blocks: boolDetermines whether minimal difficulty may be used for blocks or not.
no_pow_retargeting: boolDetermines whether retargeting is disabled for this network or not.
Methods
impl Params[src]
pub fn new(network: Network) -> Self[src]
Creates parameters set for the given network.
pub fn difficulty_adjustment_interval(&self) -> u64[src]
Calculates the number of blocks between difficulty adjustments.
Trait Implementations
impl Clone for Params[src]
fn clone(&self) -> Params[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Debug for Params[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
impl<T> From for T[src]
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = !
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,