Skip to content

Commit 455cefb

Browse files
stevenroose0xB10C
authored andcommitted
blockdata: Derive PartialOrd, Ord and Hash for BlockHeader
1 parent e9939e9 commit 455cefb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/blockdata/block.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ use crate::internal_macros::impl_consensus_encoding;
3737
/// ### Bitcoin Core References
3838
///
3939
/// * [CBlockHeader definition](https://github.com/bitcoin/bitcoin/blob/345457b542b6a980ccfbc868af0970a6f91d1b82/src/primitives/block.h#L20)
40-
#[derive(Copy, PartialEq, Eq, Clone, Debug)]
40+
#[derive(Copy, PartialEq, Eq, Clone, Debug, PartialOrd, Ord, Hash)]
4141
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
4242
#[cfg_attr(feature = "serde", serde(crate = "actual_serde"))]
4343
pub struct BlockHeader {

0 commit comments

Comments
 (0)