[][src]Struct avrio_config::NetworkConfig

pub struct NetworkConfig {
    pub version_major: u8,
    pub version_breaking: u8,
    pub version_minor: u8,
    pub coin_name: String,
    pub node_drop_off_threshold: u8,
    pub decimal_places: u8,
    pub buffer_bytes: u16,
    pub network_id: Vec<u8>,
    pub min_intrest: f32,
    pub max_intrest: f32,
    pub max_reward: u32,
    pub min_vote: u8,
    pub probatory_epoch_count: u8,
    pub certificateDifficulty: u64,
    pub fullnode_lock_amount: u64,
    pub transactionTimestampMaxOffset: u32,
    pub max_time_to_live: u64,
    pub target_epoch_length: u64,
    pub fullnode_lock_time: u64,
    pub username_burn_amount: u64,
    pub first_block_hash: String,
}

This is the struct that holds the built in , network params that are set by the core devs and the same for everyone

Fields

version_major: u8version_breaking: u8version_minor: u8coin_name: Stringnode_drop_off_threshold: u8decimal_places: u8buffer_bytes: u16network_id: Vec<u8>min_intrest: f32max_intrest: f32max_reward: u32min_vote: u8probatory_epoch_count: u8certificateDifficulty: u64fullnode_lock_amount: u64transactionTimestampMaxOffset: u32max_time_to_live: u64target_epoch_length: u64fullnode_lock_time: u64username_burn_amount: u64first_block_hash: String

Trait Implementations

impl Clone for NetworkConfig[src]

impl Debug for NetworkConfig[src]

impl Default for NetworkConfig[src]

impl<'de> Deserialize<'de> for NetworkConfig[src]

impl Serialize for NetworkConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.