diff --git a/src/blockdata/block.rs b/src/blockdata/block.rs index 55e563a8..65d5eb42 100644 --- a/src/blockdata/block.rs +++ b/src/blockdata/block.rs @@ -205,6 +205,8 @@ impl BitcoinHash for Block { impl_consensus_encoding!(BlockHeader, version, prev_blockhash, merkle_root, time, bits, nonce); impl_consensus_encoding!(Block, header, txdata); +serde_struct_impl!(BlockHeader, version, prev_blockhash, merkle_root, time, bits, nonce); +serde_struct_impl!(Block, header, txdata); #[cfg(test)] mod tests {