mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-03 12:30:07 +00:00
lnpeer: only process INIT if we are a backup. fixes #6241
This commit is contained in:
parent
436ca11021
commit
0b16f8ec3a
1 changed files with 4 additions and 0 deletions
|
@ -167,6 +167,10 @@ class Peer(Logger):
|
|||
|
||||
def process_message(self, message):
|
||||
message_type, payload = decode_msg(message)
|
||||
# only process INIT if we are a backup
|
||||
from .lnworker import LNBackups
|
||||
if isinstance(self.lnworker, LNBackups) and message_type != 'init':
|
||||
return
|
||||
if message_type in self.ordered_messages:
|
||||
chan_id = payload.get('channel_id') or payload["temporary_channel_id"]
|
||||
self.ordered_message_queues[chan_id].put_nowait((message_type, payload))
|
||||
|
|
Loading…
Add table
Reference in a new issue