From 545965d9e392b5d02a51527c46f925d6f32fabd0 Mon Sep 17 00:00:00 2001 From: Steven Roose Date: Fri, 23 Oct 2020 17:28:49 +0100 Subject: [PATCH] Change consensus::encode::serialize assert to debug_assert This is just a sanity check on our own serialization code. --- src/consensus/encode.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/consensus/encode.rs b/src/consensus/encode.rs index 05004055..9507734f 100644 --- a/src/consensus/encode.rs +++ b/src/consensus/encode.rs @@ -147,7 +147,7 @@ impl From for Error { pub fn serialize(data: &T) -> Vec { let mut encoder = Vec::new(); let len = data.consensus_encode(&mut encoder).unwrap(); - assert_eq!(len, encoder.len()); + debug_assert_eq!(len, encoder.len()); encoder }