1
0

qml: use get_node_alias in name_for_node_id.

(fixes crash caused by lnworker.channel_db being None with trampoline.)
This commit is contained in:
ThomasV
2023-03-16 08:24:35 +01:00
parent 4e2b7c6ab3
commit 43d6fd2aef

View File

@@ -256,8 +256,7 @@ class QEInvoiceParser(QEInvoice):
}
def name_for_node_id(self, node_id):
node_info = self._wallet.wallet.lnworker.channel_db.get_node_info_for_node_id(node_id=node_id)
return node_info.alias if node_info.alias else node_id.hex()
node_alias = self._wallet.wallet.lnworker.get_node_alias(node_id) or node_id.hex()
@pyqtSlot()
def clear(self):