1
0

MPP: can_send/can_receive is now the sum, no longer the max

This commit is contained in:
ThomasV
2020-12-29 14:37:53 +01:00
parent 827cd344d5
commit 0369829e5e
3 changed files with 18 additions and 16 deletions

View File

@@ -1086,9 +1086,6 @@ class Channel(AbstractChannel):
sender = subject
receiver = subject.inverted()
initiator = LOCAL if self.constraints.is_initiator else REMOTE # the initiator/funder pays on-chain fees
is_frozen = self.is_frozen_for_sending() if subject == LOCAL else self.is_frozen_for_receiving()
if not self.is_active() or is_frozen:
return 0
def consider_ctx(*, ctx_owner: HTLCOwner, is_htlc_dust: bool) -> int:
ctn = self.get_next_ctn(ctx_owner)