fn finalized_switch_block(&self) -> bool {
        let is_switch = |block_hash: &C::Hash| self.highway.state().is_terminal_block(block_hash);
        self.finality_detector
            .last_finalized()
            .map_or(false, is_switch)
    }
/// Returns whether the switch block has already been finalized.
Returns whether the switch block has already been finalized.
Returns whether the switch block has already been finalized .
fn finalized_switch_block(&self) -> bool {
        let is_switch = |block_hash: &C::Hash| self.highway.state().is_terminal_block(block_hash);
        self.finality_detector
            .last_finalized()
            .map_or(false, is_switch)
    }
fn finalized_switch_block ( & self ) -> bool { let is_switch = | block_hash : & C :: Hash | self . highway . state ( ) . is_terminal_block ( block_hash ) ; self . finality_detector . last_finalized ( ) . map_or ( false , is_switch ) }
Returns whether the switch block has already been finalized.
Returns whether the switch block has already been finalized .
&self
&self