mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-31 01:11:35 +00:00
lnpeer query_short_channel_ids: BOLT-07 says ids must be sorted
this is why most remote peers were disconnecting upon receiving this msg
This commit is contained in:
parent
afc5717cf0
commit
fbafc77f01
1 changed files with 1 additions and 0 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Reference in a new issue