Add PartialOrd, Ord to BlockHeight.

This commit is contained in:
Henry de Valence 2020-02-08 13:25:10 -08:00 committed by Deirdre Connolly
parent c4d72177c2
commit d887faf16f
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ impl fmt::Debug for Sha256dChecksum {
/// # Invariants
///
/// 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);
#[cfg(test)]