1
0

lnchannel: reflect frozen amounts and disconnected channels

in the num_sats_can_send/receive methods of the lnwallet.
This commit is contained in:
bitromortac
2020-12-18 07:09:48 +01:00
parent d44581e072
commit 7a62074f8e
2 changed files with 17 additions and 6 deletions

View File

@@ -530,6 +530,9 @@ class Channel(AbstractChannel):
def is_initiator(self):
return self.constraints.is_initiator
def is_active(self):
return self.get_state() == ChannelState.OPEN and self.peer_state == PeerState.GOOD
def funding_txn_minimum_depth(self):
return self.constraints.funding_txn_minimum_depth