[−][src]Struct lnpbp::bp::chain::ChainParams
Full set of parameters which uniquely define given blockchain, corresponding P2P network and RPC interface of fully validating nodes
Fields
genesis_hash: BlockHash
Hash of the genesis block, uniquely defining chain
name: String
Blockchain name, including version:
- mainnet for Bitcoin mainnet
- testnet3 for Bitcoin testnet version 3
- regtest for Bitcoin regtest networks
- signet for Bitcoin signet and private signet networks
- liquidv1 for Liquid network v1
p2p_magic: P2pNetworkId
Magic number used as prefix in P2P network API
bip70_name: String
Network name according to BIP 70, which may be different from ChainParams::name. Not widely used these days, but we still have to account for standard.
bip173_prefix: String
HRP bech32 address prefix as defined in BIP 173
p2p_port: u16
Default port for P2P network
rpc_port: u16
Default port for full validating node RPC interface
ln_height: u32
Block number from which Lightning network support had started using the given chain
rgb_height: u32
Block number from which RGB had started using the given chain
format: ChainFormat
Format of chain-specific data. See ChainFormat for more information
dust_limit: u64
Dust limit for the given chain; 0 if none dust limit applies
native_asset: AssetParams
Parameters of the native chain asset (can be only one; it is the asset in which miners are got paid).
is_testnet: bool
Flag indicating any kind of testnet network that do not operate with real economic values
is_pow: bool
Flag indicating blockchains that use PoW consensus algorithm
Trait Implementations
impl Clone for ChainParams
[src]
fn clone(&self) -> ChainParams
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ChainParams
[src]
impl Display for ChainParams
[src]
impl Eq for ChainParams
[src]
impl From<ChainParams> for Chain
[src]
fn from(params: ChainParams) -> Self
[src]
impl Hash for ChainParams
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for ChainParams
[src]
fn cmp(&self, other: &ChainParams) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<ChainParams> for ChainParams
[src]
impl PartialOrd<ChainParams> for ChainParams
[src]
fn partial_cmp(&self, other: &ChainParams) -> Option<Ordering>
[src]
fn lt(&self, other: &ChainParams) -> bool
[src]
fn le(&self, other: &ChainParams) -> bool
[src]
fn gt(&self, other: &ChainParams) -> bool
[src]
fn ge(&self, other: &ChainParams) -> bool
[src]
impl StrictDecode for ChainParams
[src]
type Error = Error
Implementation-dependent error type
fn strict_decode<D: Read>(d: D) -> Result<Self, Self::Error>
[src]
impl StrictEncode for ChainParams
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,