/// Create a BlockLogEntry from this block
Create a BlockLogEntry from this block
Create a BlockLogEntry from this block
pub fn log_entry(&self, block_hash: String) -> BlockLogEntry {
        BlockLogEntry {
            byte_size: None,
            certified_height: Some(self.context.certified_height.get()),
            dkg_payload_type: Some(self.payload.as_ref().payload_type().to_string()),
            hash: Some(block_hash),
            height: Some(self.height.get()),
            parent_hash: Some(hex::encode(self.parent.get_ref().0.clone())),
            rank: Some(self.rank.0),
            registry_version: Some(self.context.registry_version.get()),
            time: Some(self.context.time.as_nanos_since_unix_epoch()),
            version: Some(self.version().to_string()),
        }
    }
pub fn log_entry ( & self , block_hash : String ) -> BlockLogEntry { BlockLogEntry { byte_size : None , certified_height : Some ( self . context . certified_height . get ( ) ) , dkg_payload_type : Some ( self . payload . as_ref ( ) . payload_type ( ) . to_string ( ) ) , hash : Some ( block_hash ) , height : Some ( self . height . get ( ) ) , parent_hash : Some ( hex :: encode ( self . parent . get_ref ( ) . 0 . clone ( ) ) ) , rank : Some ( self . rank . 0 ) , registry_version : Some ( self . context . registry_version . get ( ) ) , time : Some ( self . context . time . as_nanos_since_unix_epoch ( ) ) , version : Some ( self . version ( ) . to_string ( ) ) , } }
Create a BlockLogEntry from this block
Create a BlockLogEntry from this block
&self
block_hash
String