pub struct Params {
pub max_block_weight: u64,
pub max_money: u64,
pub max_block_sigops_cost: u64,
pub coinbase_maturity: u32,
pub max_future_block_time: u32,
pub bip34_height: u32,
pub segwit_height: u32,
pub bip65_height: u32,
pub bip66_height: u32,
}Expand description
Network parameters a sidestr chain inherits (btc:regtest in
schema/chain.jsonld, as sidestrGraph extends it) — everything the
checks read. The subsidy is zero by construction (SPEC 1).
Fields§
§max_block_weight: u644,000,000 weight units.
max_money: u6421,000,000 BTC in sats.
max_block_sigops_cost: u6480,000: four times the legacy sigop count must stay under it.
coinbase_maturity: u32A coinbase output may be spent this many blocks later: 100.
max_future_block_time: u32A header may be at most this far ahead of the clock: 7,200 s.
bip34_height: u32BIP 34 applies from this height: 1.
segwit_height: u32The witness commitment rule applies from this height: 0.
bip65_height: u32Header versions: ≥ 4 from bip65_height, ≥ 3 from bip66_height, ≥ 2 from bip34_height.
bip66_height: u32See bip65_height.
Trait Implementations§
impl Eq for Params
impl StructuralPartialEq for Params
Auto Trait Implementations§
impl Freeze for Params
impl RefUnwindSafe for Params
impl Send for Params
impl Sync for Params
impl Unpin for Params
impl UnsafeUnpin for Params
impl UnwindSafe for Params
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.