blockdata: Derive PartialOrd, Ord and Hash for BlockHeader
This commit is contained in:
parent
c7b8d4cae8
commit
a9a39c4b08
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue