Skip to content

Commit

Permalink
blockdata: Derive PartialOrd, Ord and Hash for BlockHeader
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenroose authored and 0xB10C committed Jul 24, 2022
1 parent c7b8d4c commit a9a39c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/blockdata/block.rs
Expand Up @@ -37,7 +37,7 @@ use crate::internal_macros::impl_consensus_encoding;
/// ### Bitcoin Core References
///
/// * [CBlockHeader definition](https://github.com/bitcoin/bitcoin/blob/345457b542b6a980ccfbc868af0970a6f91d1b82/src/primitives/block.h#L20)
#[derive(Copy, PartialEq, Eq, Clone, Debug)]
#[derive(Copy, PartialEq, Eq, Clone, Debug, PartialOrd, Ord, Hash)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
#[cfg_attr(feature = "serde", serde(crate = "actual_serde"))]
pub struct BlockHeader {
Expand Down

0 comments on commit a9a39c4

Please sign in to comment.