pub trait UpdatedBlockTip {
    // Provided method
    fn updated_block_tip(
        &mut self,
        pindex_new: Option<Arc<BlockIndex>>,
        pindex_fork: Option<Arc<BlockIndex>>,
        initial_download: bool
    ) { ... }
}

Provided Methods§

source

fn updated_block_tip( &mut self, pindex_new: Option<Arc<BlockIndex>>, pindex_fork: Option<Arc<BlockIndex>>, initial_download: bool )

| Notifies listeners when the block chain | tip advances. | | When multiple blocks are connected | at once, UpdatedBlockTip will be called | on the final tip but may not be called | on every intermediate tip. If the latter | behavior is desired, subscribe to BlockConnected() | instead. | | Called on a background thread. |

Implementors§