Struct floresta_chain::pruned_utreexo::chainparams::ChainParams
source · pub struct ChainParams {
pub params: Params,
pub genesis: Block,
pub subsidy_halving_interval: u64,
pub pow_target_timespan: u64,
pub coinbase_maturity: u32,
pub segwit_activation_height: u32,
pub csv_activation_height: u32,
pub exceptions: HashMap<BlockHash, c_uint>,
pub network: Network,
}
Fields§
§params: Params
§genesis: Block
The network’s first block, also called genesis block.
subsidy_halving_interval: u64
Interval of blocks until the block reward halves
pow_target_timespan: u64
When we retarget we expect this many seconds to be elapsed since last time. If it’s more, we decrease difficulty, if it’s less we increase difficulty
coinbase_maturity: u32
We wait this many blocks before a coinbase output can be spent
segwit_activation_height: u32
The height at which segwit is activated
csv_activation_height: u32
The height at which csv(CHECK_SEQUENCE_VERIFY) is activated
exceptions: HashMap<BlockHash, c_uint>
A list of exceptions to the rules, where the key is the block hash and the value is the verification flags
network: Network
The network this chain params is for
Implementations§
source§impl ChainParams
impl ChainParams
pub fn get_assume_utreexo(network: Network) -> AssumeUtreexoValue
pub fn get_assume_valid( network: Network, arg: AssumeValidArg ) -> Option<BlockHash>
Trait Implementations§
source§impl AsRef<Params> for ChainParams
impl AsRef<Params> for ChainParams
source§impl Clone for ChainParams
impl Clone for ChainParams
source§fn clone(&self) -> ChainParams
fn clone(&self) -> ChainParams
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ChainParams
impl Debug for ChainParams
Auto Trait Implementations§
impl RefUnwindSafe for ChainParams
impl Send for ChainParams
impl Sync for ChainParams
impl Unpin for ChainParams
impl UnwindSafe for ChainParams
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more