[−][src]Struct dubp_currency_params::CurrencyParameters
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(&self) -> 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]
fn from(source: (&CurrencyName, BlockV10Parameters)) -> CurrencyParameters
[src]
impl Copy for CurrencyParameters
[src]
impl Debug for CurrencyParameters
[src]
Auto Trait Implementations
impl Sync for CurrencyParameters
impl Send for CurrencyParameters
impl Unpin for CurrencyParameters
impl RefUnwindSafe for CurrencyParameters
impl UnwindSafe for CurrencyParameters
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &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, 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.
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,