Add PartialOrd, Ord to BlockHeight.
This commit is contained in:
parent
c4d72177c2
commit
d887faf16f
|
|
@ -43,7 +43,7 @@ impl fmt::Debug for Sha256dChecksum {
|
||||||
/// # Invariants
|
/// # Invariants
|
||||||
///
|
///
|
||||||
/// Users should not construct block heights greater than or equal to `500_000_000`.
|
/// Users should not construct block heights greater than or equal to `500_000_000`.
|
||||||
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
|
#[derive(Copy, Clone, Debug, Eq, PartialEq, PartialOrd, Ord)]
|
||||||
pub struct BlockHeight(pub u32);
|
pub struct BlockHeight(pub u32);
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue