From 05a191cc6a544adf625c70454540c8b79ea5ed7c Mon Sep 17 00:00:00 2001 From: ThomasV Date: Mon, 9 Mar 2020 19:10:03 +0100 Subject: [PATCH] (minor) simplification --- electrum/lnchannel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electrum/lnchannel.py b/electrum/lnchannel.py index 675ca9087..e3e8453d8 100644 --- a/electrum/lnchannel.py +++ b/electrum/lnchannel.py @@ -806,7 +806,7 @@ class Channel(Logger): def make_commitment(self, subject, this_point, ctn) -> PartialTransaction: assert type(subject) is HTLCOwner feerate = self.get_feerate(subject, ctn) - other = REMOTE if LOCAL == subject else LOCAL + other = subject.inverted() local_msat = self.balance(subject, ctx_owner=subject, ctn=ctn) remote_msat = self.balance(other, ctx_owner=subject, ctn=ctn) received_htlcs = self.hm.htlcs_by_direction(subject, SENT if subject == LOCAL else RECEIVED, ctn).values()