Merge pull request #321 from tamasblummer/add_serde_to_block
[TRIVIAL] enable serde serialization for block and blockheader
This commit is contained in:
commit
de9ccdec89
|
@ -205,6 +205,8 @@ impl BitcoinHash for Block {
|
||||||
|
|
||||||
impl_consensus_encoding!(BlockHeader, version, prev_blockhash, merkle_root, time, bits, nonce);
|
impl_consensus_encoding!(BlockHeader, version, prev_blockhash, merkle_root, time, bits, nonce);
|
||||||
impl_consensus_encoding!(Block, header, txdata);
|
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)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
|
|
Loading…
Reference in New Issue