diff --git a/primitives/src/block.rs b/primitives/src/block.rs index f746f4dbc..0eda1f435 100644 --- a/primitives/src/block.rs +++ b/primitives/src/block.rs @@ -223,7 +223,7 @@ impl fmt::Display for Header { self.time.to_u32().to_le_bytes().as_hex(), self.bits.to_consensus().to_le_bytes().as_hex(), self.nonce.to_le_bytes().as_hex(), - )?; + ).expect("total length of written objects is 160 characters"); fmt::Display::fmt(&buf, f) } }