From a9c14da33b2fbb3466bb2a79a30c9ace9497d841 Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Thu, 14 Jan 2021 11:29:03 +0100 Subject: [PATCH] historian: Fix the short channel ID output It's 2 bytes not 1 --- historian/parser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/historian/parser.py b/historian/parser.py index f9a8617..bb8bdea 100644 --- a/historian/parser.py +++ b/historian/parser.py @@ -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