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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user