add Eq, PartialOrd, Ord, Hash to ShortChannelId

This commit is contained in:
daywalker90 2023-09-11 00:05:42 +02:00 committed by Vincenzo Palazzo
parent a1e8c1c102
commit 451fb77e5b

View file

@ -125,7 +125,7 @@ impl std::ops::Sub for Amount {
}
}
#[derive(Clone, Copy, Debug, PartialEq)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct ShortChannelId(u64);
impl Serialize for ShortChannelId {