historian: Fix the short channel ID output

It's 2 bytes not 1
This commit is contained in:
Christian Decker
2021-01-14 11:29:03 +01:00
parent 487e927116
commit a9c14da33b

View File

@@ -20,7 +20,7 @@ class ChannelAnnouncement(object):
return "{}x{}x{}".format(
(self.num_short_channel_id >> 40) & 0xFFFFFF,
(self.num_short_channel_id >> 16) & 0xFFFFFF,
(self.num_short_channel_id >> 00) & 0xFF
(self.num_short_channel_id >> 00) & 0xFFFF
)
def __eq__(self, other):
@@ -61,7 +61,7 @@ class ChannelUpdate(object):
return "{}x{}x{}".format(
(self.num_short_channel_id >> 40) & 0xFFFFFF,
(self.num_short_channel_id >> 16) & 0xFFFFFF,
(self.num_short_channel_id >> 00) & 0xFF
(self.num_short_channel_id >> 00) & 0xFFFF
)
@property