Allow generating QR codes for remote nodes and for all channels

This commit is contained in:
Ian McEwen
2024-04-21 09:41:07 -07:00
parent cd1ecab4e0
commit 243b310eb2
2 changed files with 19 additions and 4 deletions

View File

@@ -313,6 +313,8 @@ class Node:
):
channelSet.settings.append(c.settings)
if len(self.localConfig.ListFields()) == 0:
self.requestConfig(self.localConfig.DESCRIPTOR.fields_by_name.get('lora'))
channelSet.lora_config.CopyFrom(self.localConfig.lora)
some_bytes = channelSet.SerializeToString()
s = base64.urlsafe_b64encode(some_bytes).decode("ascii")