[][src]Trait grin_servers::common::adapters::DandelionAdapter

pub trait DandelionAdapter: Send + Sync {
    fn is_stem(&self) -> bool;
fn is_expired(&self) -> bool;
fn next_epoch(&self); }

Adapter between the Dandelion monitor and the current Dandelion "epoch".

Required methods

fn is_stem(&self) -> bool

Is the node stemming (or fluffing) transactions in the current epoch?

fn is_expired(&self) -> bool

Is the current Dandelion epoch expired?

fn next_epoch(&self)

Transition to the next Dandelion epoch (new stem/fluff state, select new relay peer).

Loading content...

Implementors

impl DandelionAdapter for PoolToNetAdapter[src]

Loading content...