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

pub trait PoolAdapter: Send + Sync {
    fn tx_accepted(&self, tx: &Transaction);
fn stem_tx_accepted(&self, tx: &Transaction) -> 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

fn tx_accepted(&self, tx: &Transaction)

The transaction pool has accepted this transaction as valid.

fn stem_tx_accepted(&self, tx: &Transaction) -> Result<(), PoolError>

The stem transaction pool has accepted this transactions as valid.

Loading content...

Implementors

impl PoolAdapter for NoopAdapter[src]

Loading content...