diff --git a/proof/src/bft_proof.rs b/proof/src/bft_proof.rs index 5dce5f35..503dc68f 100644 --- a/proof/src/bft_proof.rs +++ b/proof/src/bft_proof.rs @@ -129,7 +129,8 @@ impl BftProof { impl From for BftProof { fn from(p: Proof) -> Self { - let decoded: BftProof = deserialize(&p.get_content()[..]).unwrap(); + let decoded: BftProof = + deserialize(&p.get_content()[..]).unwrap_or_else(|_| BftProof::default()); decoded } }