pub struct ZeldConfig {
pub min_zero_count: u8,
pub base_reward: Amount,
pub zeld_prefix: &'static [u8],
}Expand description
Static parameters that describe how the ZELD protocol behaves on a network.
Fields§
§min_zero_count: u8Minimum leading zeros required for a transaction to earn ZELD.
base_reward: AmountBase reward for the best transaction in a block.
zeld_prefix: &'static [u8]Prefix bytes for custom distribution OP_RETURN data.
Implementations§
Source§impl ZeldConfig
impl ZeldConfig
Sourcepub const fn for_network(network: ZeldNetwork) -> Self
pub const fn for_network(network: ZeldNetwork) -> Self
Returns the configuration associated with the provided Bitcoin network.
Trait Implementations§
Source§impl Clone for ZeldConfig
impl Clone for ZeldConfig
Source§fn clone(&self) -> ZeldConfig
fn clone(&self) -> ZeldConfig
Returns a duplicate 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 ZeldConfig
impl Debug for ZeldConfig
Source§impl Default for ZeldConfig
impl Default for ZeldConfig
Source§impl From<ZeldNetwork> for ZeldConfig
impl From<ZeldNetwork> for ZeldConfig
Source§fn from(network: ZeldNetwork) -> Self
fn from(network: ZeldNetwork) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ZeldConfig
impl PartialEq for ZeldConfig
impl Copy for ZeldConfig
impl Eq for ZeldConfig
impl StructuralPartialEq for ZeldConfig
Auto Trait Implementations§
impl Freeze for ZeldConfig
impl RefUnwindSafe for ZeldConfig
impl Send for ZeldConfig
impl Sync for ZeldConfig
impl Unpin for ZeldConfig
impl UnwindSafe for ZeldConfig
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