chore: add ShortChannelId::to_u64

This commit is contained in:
Tommy Volk 2024-07-04 09:54:10 -05:00 committed by Christian Decker
parent 242ecbc906
commit a3c15e8a4a

View file

@ -260,6 +260,9 @@ impl ShortChannelId {
pub fn outnum(&self) -> u16 {
self.0 as u16 & 0xFFFF
}
pub fn to_u64(&self) -> u64 {
self.0
}
}
#[derive(Clone, Copy, Debug)]
@ -793,7 +796,7 @@ mod test {
});
let p: FundchannelResponse = serde_json::from_value(r).unwrap();
assert_eq!(p.channel_type.unwrap().bits, vec![1,3,5]);
assert_eq!(p.channel_type.unwrap().bits, vec![1, 3, 5]);
}
}