[][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

The transaction pool has accepted this transactions as valid and added it to its internal cache.

The stem transaction pool has accepted this transactions as valid and added it to its internal cache, we have waited for the "patience" timer to fire and we now want to propagate the tx to the next Dandelion relay.

Loading content...

Implementors

Loading content...