Struct grin_pool::types::DandelionConfig
source · pub struct DandelionConfig {
pub epoch_secs: u16,
pub embargo_secs: u16,
pub aggregation_secs: u16,
pub stem_probability: u8,
pub always_stem_our_txs: bool,
}
Expand description
Configuration for “Dandelion”. Note: shared between p2p and pool.
Fields§
§epoch_secs: u16
Length of each “epoch”.
embargo_secs: u16
Dandelion embargo timer. Fluff and broadcast individual txs if not seen on network before embargo expires.
aggregation_secs: u16
Dandelion aggregation timer.
stem_probability: u8
Dandelion stem probability (stem 90% of the time, fluff 10% etc.)
always_stem_our_txs: bool
Default to always stem our txs as described in Dandelion++ paper.
Trait Implementations§
source§impl Clone for DandelionConfig
impl Clone for DandelionConfig
source§fn clone(&self) -> DandelionConfig
fn clone(&self) -> DandelionConfig
Returns a copy 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 DandelionConfig
impl Debug for DandelionConfig
source§impl Default for DandelionConfig
impl Default for DandelionConfig
source§fn default() -> DandelionConfig
fn default() -> DandelionConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for DandelionConfig
impl<'de> Deserialize<'de> for DandelionConfig
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for DandelionConfig
impl PartialEq for DandelionConfig
source§fn eq(&self, other: &DandelionConfig) -> bool
fn eq(&self, other: &DandelionConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for DandelionConfig
impl Serialize for DandelionConfig
impl StructuralPartialEq for DandelionConfig
Auto Trait Implementations§
impl Freeze for DandelionConfig
impl RefUnwindSafe for DandelionConfig
impl Send for DandelionConfig
impl Sync for DandelionConfig
impl Unpin for DandelionConfig
impl UnwindSafe for DandelionConfig
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