Trait grin_pool::types::PoolAdapter

source ·
pub trait PoolAdapter: Send + Sync {
    // Required methods
    fn tx_accepted(&self, entry: &PoolEntry);
    fn stem_tx_accepted(&self, entry: &PoolEntry) -> Result<(), PoolError>;
}
Expand description

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§

source

fn tx_accepted(&self, entry: &PoolEntry)

The transaction pool has accepted this transaction as valid.

source

fn stem_tx_accepted(&self, entry: &PoolEntry) -> Result<(), PoolError>

The stem transaction pool has accepted this transactions as valid.

Implementors§