tlnpeer query_short_channel_ids: BOLT-07 says ids must be sorted - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit fbafc77f01b7eda815df65d40f55af8ede2c3ca1 DIR parent afc5717cf05103df3e3bede792b4408920488a42 HTML Author: SomberNight <somber.night@protonmail.com> Date: Tue, 14 May 2019 21:24:38 +0200 lnpeer query_short_channel_ids: BOLT-07 says ids must be sorted tthis is why most remote peers were disconnecting upon receiving this msg Diffstat: M electrum/lnpeer.py | 1 + 1 file changed, 1 insertion(+), 0 deletions(-) --- DIR diff --git a/electrum/lnpeer.py b/electrum/lnpeer.py t@@ -306,6 +306,7 @@ class Peer(Logger): self.reply_channel_range.put_nowait((first, num, complete, ids)) def query_short_channel_ids(self, ids, compressed=True): + ids = sorted(ids) s = b''.join(ids) encoded = zlib.compress(s) if compressed else s prefix = b'\x01' if compressed else b'\x00'