pub struct BlockV10Parameters {Show 20 fields
pub c: f64,
pub dt: u64,
pub ud0: usize,
pub sig_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 x_percent: f64,
pub ms_validity: 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,
}Expand description
Currency parameters
Fields§
§c: f64UD target growth rate (see Relative Theorie of Money)
dt: u64Duration between the creation of two UD (in seconds)
ud0: usizeAmount of the initial UD
sig_period: u64Minimum duration between the writing of 2 certifications from the same issuer (in seconds)
sig_stock: usizeMaximum number of active certifications at the same time (for the same issuer)
sig_window: u64Maximum retention period of a pending certification
sig_validity: u64Time to expiry of written certification
sig_qty: usizeMinimum number of certifications required to become a member
idty_window: u64Maximum retention period of a pending identity
ms_window: u64Maximum retention period of a pending membership
x_percent: f64Percentage of referring members who must be within step_max steps of each member
ms_validity: u64Time to expiry of written membership
step_max: usizeFor 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: usizeNumber of blocks used for calculating median time.
avg_gen_time: u64The average time for writing 1 block (wished time)
dt_diff_eval: usizeThe number of blocks required to evaluate again PoWMin value
percent_rot: f64The percent of previous issuers to reach for personalized difficulty
ud_time0: u64Time of first UD.
ud_reeval_time0: u64Time of first reevaluation of the UD.
dt_reeval: u64Time period between two re-evaluation of the UD.
Trait Implementations§
Source§impl Clone for BlockV10Parameters
impl Clone for BlockV10Parameters
Source§fn clone(&self) -> BlockV10Parameters
fn clone(&self) -> BlockV10Parameters
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BlockV10Parameters
impl Debug for BlockV10Parameters
Source§impl Default for BlockV10Parameters
impl Default for BlockV10Parameters
Source§fn default() -> BlockV10Parameters
fn default() -> BlockV10Parameters
Source§impl<'de> Deserialize<'de> for BlockV10Parameters
impl<'de> Deserialize<'de> for BlockV10Parameters
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl FromStr for BlockV10Parameters
impl FromStr for BlockV10Parameters
Source§impl PartialEq for BlockV10Parameters
impl PartialEq for BlockV10Parameters
Source§impl Serialize for BlockV10Parameters
impl Serialize for BlockV10Parameters
Source§impl ToString for BlockV10Parameters
impl ToString for BlockV10Parameters
impl Copy for BlockV10Parameters
impl StructuralPartialEq for BlockV10Parameters
Auto Trait Implementations§
impl Freeze for BlockV10Parameters
impl RefUnwindSafe for BlockV10Parameters
impl Send for BlockV10Parameters
impl Sync for BlockV10Parameters
impl Unpin for BlockV10Parameters
impl UnwindSafe for BlockV10Parameters
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more