diff --git a/src/consensus/encode.rs b/src/consensus/encode.rs index f538f5b5..fc0bc1e7 100644 --- a/src/consensus/encode.rs +++ b/src/consensus/encode.rs @@ -336,7 +336,7 @@ macro_rules! impl_int_encodable{ impl Decodable for $ty { #[inline] fn consensus_decode(mut d: D) -> Result { - ReadExt::$meth_dec(&mut d).map($ty::from_le) + ReadExt::$meth_dec(&mut d) } } impl Encodable for $ty { @@ -345,7 +345,7 @@ macro_rules! impl_int_encodable{ &self, mut s: S, ) -> Result { - s.$meth_enc(self.to_le())?; + s.$meth_enc(*self)?; Ok(mem::size_of::<$ty>()) } }