1
0

show capacity of channel backups in GUI

This commit is contained in:
ThomasV
2021-03-12 17:38:42 +01:00
parent 3ff203ea51
commit 65d263801a
4 changed files with 9 additions and 6 deletions

View File

@@ -446,6 +446,9 @@ class ChannelBackup(AbstractChannel):
self.lnworker = lnworker
self.short_channel_id = None
def get_capacity(self):
return self.lnworker.lnwatcher.get_tx_delta(self.funding_outpoint.txid, self.cb.funding_address)
def is_backup(self):
return True
@@ -538,6 +541,9 @@ class Channel(AbstractChannel):
self._receive_fail_reasons = {} # type: Dict[int, (bytes, OnionRoutingFailure)]
self._ignore_max_htlc_value = False # used in tests
def get_capacity(self):
return self.constraints.capacity
def is_initiator(self):
return self.constraints.is_initiator