mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
(minor) simplification
This commit is contained in:
parent
dd0a93abd5
commit
05a191cc6a
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue