Skip to content

Commit

Permalink
enable serde serialization for block and blockheader
Browse files Browse the repository at this point in the history
  • Loading branch information
tamasblummer committed Aug 24, 2019
1 parent 24361dd commit 38d5ae4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/blockdata/block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 38d5ae4

Please sign in to comment.