1
0

disable new_channel call for now as channel is otherwise added twice

This commit is contained in:
Sander van Grieken
2022-07-04 18:35:34 +02:00
parent 6a1c39728f
commit 6fecf5b962
2 changed files with 3 additions and 1 deletions

View File

@@ -140,6 +140,7 @@ class QEChannelListModel(QAbstractListModel):
@pyqtSlot(str)
def new_channel(self, cid):
self._logger.debug('new channel with cid ' % cid)
lnchannels = self.wallet.lnworker.channels
for channel in lnchannels.values():
self._logger.debug(repr(channel))
@@ -152,6 +153,7 @@ class QEChannelListModel(QAbstractListModel):
@pyqtSlot(str)
def remove_channel(self, cid):
self._logger.debug('remove channel with cid ' % cid)
i = 0
for channel in self.channels:
if cid == channel['cid']: