fn log_proposal(&self, vertex: &Vertex<C>, msg: &str) -> bool {
        let (wire_unit, hash) = match vertex.unit() {
            Some(swu) if swu.wire_unit().value.is_some() => (swu.wire_unit(), swu.hash()),
            _ => return false, // Not a proposal.
        };
        let creator = if let Some(creator) = self.highway.validators().id(wire_unit.creator) {
            creator
        } else {
            error!(?wire_unit, "{}: invalid creator", msg);
            return true;
        };
        info!(
            ?hash,
            ?creator,
            creator_index = wire_unit.creator.0,
            timestamp = %wire_unit.timestamp,
            round_exp = wire_unit.round_exp,
            seq_number = wire_unit.seq_number,
            "{}", msg
        );
        true
    }
/// Prints a log message if the vertex is a proposal unit. Otherwise returns `false`.
Prints a log message if the vertex is a proposal unit. Otherwise returns `false`.
Prints a log message if the vertex is a proposal unit . Otherwise returns ` false ` .
fn log_proposal(&self, vertex: &Vertex<C>, msg: &str) -> bool {
        let (wire_unit, hash) = match vertex.unit() {
            Some(swu) if swu.wire_unit().value.is_some() => (swu.wire_unit(), swu.hash()),
            _ => return false, // Not a proposal.
        };
        let creator = if let Some(creator) = self.highway.validators().id(wire_unit.creator) {
            creator
        } else {
            error!(?wire_unit, "{}: invalid creator", msg);
            return true;
        };
        info!(
            ?hash,
            ?creator,
            creator_index = wire_unit.creator.0,
            timestamp = %wire_unit.timestamp,
            round_exp = wire_unit.round_exp,
            seq_number = wire_unit.seq_number,
            "{}", msg
        );
        true
    }
fn log_proposal ( & self , vertex : & Vertex < C > , msg : & str ) -> bool { let ( wire_unit , hash ) = match vertex . unit ( ) { Some ( swu ) if swu . wire_unit ( ) . value . is_some ( ) => ( swu . wire_unit ( ) , swu . hash ( ) ) , _ => return false , // Not a proposal. } ; let creator = if let Some ( creator ) = self . highway . validators ( ) . id ( wire_unit . creator ) { creator } else { error ! ( wire_unit " " msg ) ; return true ; } ; info ! ( hash creator creator_index wire_unit creator 0 timestamp wire_unit timestamp round_exp wire_unit round_exp seq_number wire_unit seq_number " " msg ) ; true }
Prints a log message if the vertex is a proposal unit.
Prints a log message if the vertex is a proposal unit .
&self
vertex
&Vertex<C>
msg
&str
&self
vertex
&Vertex<C>
msg
&str