fn log_block(&self, block: &Block) {
        let hash = get_block_hash_string(block);
        let block_log_entry = block.log_entry(hash.clone());
        debug!(
            self.log,
            "block_proposal";
            block => block_log_entry
        );
        let empty_batch = BatchPayload::default();
        let batch = if block.payload.is_summary() {
            &empty_batch
        } else {
            &block.payload.as_ref().as_data().batch
        };

        for message_id in batch.ingress.message_ids() {
            debug!(
                self.log,
                "ingress_message_insert_into_block";
                ingress_message.message_id => format!("{}", message_id),
                block.hash => hash,
            );
        }
    }
/// Log an entry for the proposed block and each of its ingress messages
Log an entry for the proposed block and each of its ingress messages
Log an entry for the proposed block and each of its ingress messages
fn log_block(&self, block: &Block) {
        let hash = get_block_hash_string(block);
        let block_log_entry = block.log_entry(hash.clone());
        debug!(
            self.log,
            "block_proposal";
            block => block_log_entry
        );
        let empty_batch = BatchPayload::default();
        let batch = if block.payload.is_summary() {
            &empty_batch
        } else {
            &block.payload.as_ref().as_data().batch
        };
        for message_id in batch.ingress.message_ids() {
            debug!(
                self.log,
                "ingress_message_insert_into_block";
                ingress_message.message_id => format!("{}", message_id),
                block.hash => hash,
            );
        }
    }
fn log_block ( & self , block : & Block ) { let hash = get_block_hash_string ( block ) ; let block_log_entry = block . log_entry ( hash . clone ( ) ) ; debug ! ( self log " " block block_log_entry ) ; let empty_batch = BatchPayload :: default ( ) ; let batch = if block . payload . is_summary ( ) { & empty_batch } else { & block . payload . as_ref ( ) . as_data ( ) . batch } ; for message_id in batch . ingress . message_ids ( ) { debug ! ( self log " " ingress_message message_id format ( " " message_id ) block hash hash ) ; } }
Log an entry for the proposed block and each of its ingress messages
Log an entry for the proposed block and each of its ingress messages
&self
block
&Block
&self
block
&Block