Browse Source

lnhtlc: fix received_in_ctn (LOCAL->REMOTE)

dependabot/pip/contrib/deterministic-build/ecdsa-0.13.3
ThomasV 6 years ago
parent
commit
11c0c0d5a1
  1. 2
      electrum/lnhtlc.py

2
electrum/lnhtlc.py

@ -159,7 +159,7 @@ class HTLCManager:
return sent + received return sent + received
def received_in_ctn(self, ctn): def received_in_ctn(self, ctn):
return [self.log[REMOTE]['adds'][htlc_id] for htlc_id, ctnheights in self.log[REMOTE]['settles'].items() if ctnheights[LOCAL] == ctn] return [self.log[REMOTE]['adds'][htlc_id] for htlc_id, ctnheights in self.log[REMOTE]['settles'].items() if ctnheights[REMOTE] == ctn]
def sent_in_ctn(self, ctn): def sent_in_ctn(self, ctn):
return [self.log[LOCAL]['adds'][htlc_id] for htlc_id, ctnheights in self.log[LOCAL]['settles'].items() if ctnheights[LOCAL] == ctn] return [self.log[LOCAL]['adds'][htlc_id] for htlc_id, ctnheights in self.log[LOCAL]['settles'].items() if ctnheights[LOCAL] == ctn]

Loading…
Cancel
Save