[][src]Trait grin_pool::types::PoolAdapter

pub trait PoolAdapter: Send + Sync {
    pub fn tx_accepted(&self, entry: &PoolEntry);
pub fn stem_tx_accepted(&self, entry: &PoolEntry) -> Result<(), PoolError>; }

Bridge between the transaction pool and the rest of the system. Handles downstream processing of valid transactions by the rest of the system, most importantly the broadcasting of transactions to our peers.

Required methods

pub fn tx_accepted(&self, entry: &PoolEntry)[src]

The transaction pool has accepted this transaction as valid.

pub fn stem_tx_accepted(&self, entry: &PoolEntry) -> Result<(), PoolError>[src]

The stem transaction pool has accepted this transactions as valid.

Loading content...

Implementors

impl PoolAdapter for NoopPoolAdapter[src]

Loading content...