Trait transaction_pool::Listener [] [src]

pub trait Listener<T> {
    fn added(&mut self, _tx: &Arc<T>, _old: Option<&Arc<T>>) { ... }
fn rejected(&mut self, _tx: T) { ... }
fn dropped(&mut self, _tx: &Arc<T>) { ... }
fn invalid(&mut self, _tx: &Arc<T>) { ... }
fn cancelled(&mut self, _tx: &Arc<T>) { ... }
fn mined(&mut self, _tx: &Arc<T>) { ... } }

Transaction pool listener.

Listener is being notified about status of every transaction in the pool.

Provided Methods

The transaction has been successfuly added to the pool. If second argument is Some the transaction has took place of some other transaction which was already in pool. NOTE: You won't be notified about drop of old transaction separately.

The transaction was rejected from the pool. It means that it was too cheap to replace any transaction already in the pool.

The transaction was dropped from the pool because of a limit.

The transaction was marked as invalid by executor.

The transaction has been cancelled.

The transaction has been mined.

Implementors