async fn wait_until_enabled_by_debug(&mut self) -> Result<(), watch::error::RecvError> {
        // optimise non-debug performance
        if self.debug_enable_at_height.is_none() {
            return future::pending().await;
        }

        let enable_at_height = self
            .debug_enable_at_height
            .expect("unexpected debug_enable_at_height: just checked for None");

        loop {
            let best_tip_height = self
                .chain_tip_change
                .wait_for_tip_change()
                .await?
                .best_tip_height();

            if best_tip_height >= enable_at_height {
                return Ok(());
            }
        }
    }
/// Waits until the mempool crawler is enabled by a debug config option.
///
/// Returns an error if communication with the state is lost.
Waits until the mempool crawler is enabled by a debug config option.
Returns an error if communication with the state is lost.
Waits until the mempool crawler is enabled by a debug config option . Returns an error if communication with the state is lost .
async fn wait_until_enabled_by_debug(&mut self) -> Result<(), watch::error::RecvError> {
        // optimise non-debug performance
        if self.debug_enable_at_height.is_none() {
            return future::pending().await;
        }
        let enable_at_height = self
            .debug_enable_at_height
            .expect("unexpected debug_enable_at_height: just checked for None");
        loop {
            let best_tip_height = self
                .chain_tip_change
                .wait_for_tip_change()
                .await?
                .best_tip_height();
            if best_tip_height >= enable_at_height {
                return Ok(());
            }
        }
    }
async fn wait_until_enabled_by_debug ( & mut self ) -> Result < ( ) , watch :: error :: RecvError > { // optimise non-debug performance if self . debug_enable_at_height . is_none ( ) { return future :: pending ( ) . await ; } let enable_at_height = self . debug_enable_at_height . expect ( " " ) ; loop { let best_tip_height = self . chain_tip_change . wait_for_tip_change ( ) . await ? . best_tip_height ( ) ; if best_tip_height >= enable_at_height { return Ok ( ( ) ) ; } } }
Waits until the mempool crawler is enabled by a debug config option.
Waits until the mempool crawler is enabled by a debug config option .
&mut self