Browse Source

channel backups: display status from lnworker instead of channel state

patch-4
ThomasV 4 years ago
parent
commit
8588674539
  1. 6
      electrum/lnchannel.py

6
electrum/lnchannel.py

@ -468,8 +468,10 @@ class ChannelBackup(AbstractChannel):
return 'BACKUP' return 'BACKUP'
def get_state_for_GUI(self): def get_state_for_GUI(self):
cs = self.get_state() if self.lnworker:
return cs.name return self.lnworker.lnwatcher.get_channel_status(self.funding_outpoint.to_str())
else:
return 'unknown'
def get_oldest_unrevoked_ctn(self, who): def get_oldest_unrevoked_ctn(self, who):
return -1 return -1

Loading…
Cancel
Save