Trait bitcoind_client::follower::Tracker

source ·
pub trait Tracker {
    // Required methods
    fn forward_watches<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = (Vec<Txid>, Vec<OutPoint>)> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn reverse_watches<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = (Vec<Txid>, Vec<OutPoint>)> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

A callback trait returning which transactions and outpoints should be included in proofs

Required Methods§

source

fn forward_watches<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = (Vec<Txid>, Vec<OutPoint>)> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Returns all Txid and OutPoints to watch for in future blocks

source

fn reverse_watches<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = (Vec<Txid>, Vec<OutPoint>)> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Returns all Txid and OutPoint watches used for prior blocks. Used when removing blocks during reorg.

Implementors§