Struct bitcoinchain_params::ChainParams
source · pub struct ChainParams { /* private fields */ }Expand description
| ChainParams defines various tweakable | parameters of a given instance of the | Bitcoin system. |
Implementations§
source§impl ChainParams
impl ChainParams
pub fn get_consensus(&self) -> Arc<ChainConsensusParams>
pub fn message_start(&self) -> &MessageHeaderMessageStartChars
pub fn get_default_port(&self) -> u16
pub fn get_default_port_with_network(&self, net: Network) -> u16
pub fn get_default_port_from_addr(&self, addr: &String) -> u16
pub fn genesis_block(&self) -> &Block
sourcepub fn default_consistency_checks(&self) -> bool
pub fn default_consistency_checks(&self) -> bool
| Default value for -checkmempool and | -checkblockindex argument |
sourcepub fn require_standard(&self) -> bool
pub fn require_standard(&self) -> bool
| Policy: Filter transactions that do | not match well-defined patterns |
sourcepub fn is_test_chain(&self) -> bool
pub fn is_test_chain(&self) -> bool
| If this chain is exclusively used for | testing |
sourcepub fn is_mockable_chain(&self) -> bool
pub fn is_mockable_chain(&self) -> bool
| If this chain allows time to be mocked |
pub fn prune_after_height(&self) -> u64
sourcepub fn assumed_blockchain_size(&self) -> u64
pub fn assumed_blockchain_size(&self) -> u64
| Minimum free space (in GB) needed for | data directory |
sourcepub fn assumed_chain_state_size(&self) -> u64
pub fn assumed_chain_state_size(&self) -> u64
| Minimum free space (in GB) needed for | data directory when pruned; Does not | include prune target |
sourcepub fn mine_blocks_on_demand(&self) -> bool
pub fn mine_blocks_on_demand(&self) -> bool
| Whether it is possible to mine blocks | on demand (no retargeting) |
sourcepub fn network_id_string(&self) -> String
pub fn network_id_string(&self) -> String
| Return the network string |
sourcepub fn dns_seeds(&self) -> &Vec<String>
pub fn dns_seeds(&self) -> &Vec<String>
| Return the list of hostnames to look | up for DNS seeds |
pub fn base_58prefix(&self, ty: Base58Type) -> &Vec<u8>
pub fn bech32hrp(&self) -> &String
pub fn fixed_seeds(&self) -> &Vec<u8>
pub fn checkpoints(&self) -> &CheckpointData
sourcepub fn assumeutxo(&self) -> &MapAssumeUtxo
pub fn assumeutxo(&self) -> &MapAssumeUtxo
| Get allowed assumeutxo configuration. | @see ChainstateManager |
pub fn tx_data(&self) -> &ChainTxData
Trait Implementations§
source§impl Default for ChainParams
impl Default for ChainParams
source§fn default() -> ChainParams
fn default() -> ChainParams
Returns the “default value” for a type. Read more
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, U> CastInto<U> for Twhere
U: CastFrom<T>,
impl<T, U> CastInto<U> for Twhere U: CastFrom<T>,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> StaticUpcast<T> for T
impl<T> StaticUpcast<T> for T
§unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
Convert type of a const pointer. Read more