[][src]Struct dubp_currency_params::CurrencyParameters

pub struct CurrencyParameters {
    pub protocol_version: usize,
    pub c: f64,
    pub dt: u64,
    pub ud0: usize,
    pub sig_period: u64,
    pub sig_renew_period: u64,
    pub sig_stock: usize,
    pub sig_window: u64,
    pub sig_validity: u64,
    pub sig_qty: usize,
    pub idty_window: u64,
    pub ms_window: u64,
    pub tx_window: u64,
    pub x_percent: f64,
    pub ms_validity: u64,
    pub ms_period: u64,
    pub step_max: usize,
    pub median_time_blocks: usize,
    pub avg_gen_time: u64,
    pub dt_diff_eval: usize,
    pub percent_rot: f64,
    pub ud_time0: u64,
    pub ud_reeval_time0: u64,
    pub dt_reeval: u64,
    pub fork_window_size: usize,
}

Currency parameters

Fields

protocol_version: usize

Protocol version

c: f64

UD target growth rate (see Relative Theorie of Money)

dt: u64

Duration between the creation of two UD (in seconds)

ud0: usize

Amount of the initial UD

sig_period: u64

Minimum duration between the writing of 2 certifications from the same issuer (in seconds)

sig_renew_period: u64

Minimum duration between two renewals of the same certification

sig_stock: usize

Maximum number of active certifications at the same time (for the same issuer)

sig_window: u64

Maximum retention period of a pending certification

sig_validity: u64

Time to expiry of written certification

sig_qty: usize

Minimum number of certifications required to become a member

idty_window: u64

Maximum retention period of a pending identity

ms_window: u64

Maximum retention period of a pending membership

tx_window: u64

Maximum retention period of a pending transaction

x_percent: f64

Percentage of referring members who must be within step_max steps of each member

ms_validity: u64

Time to expiry of written membership

ms_period: u64

Minimum duration between the writing of 2 memberships from the same issuer (in seconds)

step_max: usize

For a member to respect the distance rule, there must exist for more than x_percent % of the referring members a path of less than step_max steps from the referring member to the evaluated member.

median_time_blocks: usize

Number of blocks used for calculating median time.

avg_gen_time: u64

The average time for writing 1 block (wished time)

dt_diff_eval: usize

The number of blocks required to evaluate again PoWMin value

percent_rot: f64

The percent of previous issuers to reach for personalized difficulty

ud_time0: u64

Time of first UD.

ud_reeval_time0: u64

Time of first reevaluation of the UD.

dt_reeval: u64

Time period between two re-evaluation of the UD.

fork_window_size: usize

Maximum roolback length

Methods

impl CurrencyParameters[src]

pub fn max_connectivity(&self) -> f64[src]

Get max value of connectivity (=1/x_percent)

Trait Implementations

impl Clone for CurrencyParameters[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<'_> From<(&'_ CurrencyName, BlockV10Parameters)> for CurrencyParameters[src]

impl Copy for CurrencyParameters[src]

impl Debug for CurrencyParameters[src]

Auto Trait Implementations

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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.

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

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

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