1
0

lnpeer: MPP recv: only fulfill htlc if amt sum exact-matches total_msat

This commit is contained in:
SomberNight
2021-02-24 20:40:49 +01:00
parent 9024419fdc
commit 16f0b30ced
3 changed files with 7 additions and 8 deletions

View File

@@ -1051,7 +1051,9 @@ class Channel(AbstractChannel):
if is_sent:
self.lnworker.htlc_fulfilled(self, payment_hash, htlc.htlc_id, htlc.amount_msat)
else:
self.lnworker.htlc_received(self, payment_hash)
# FIXME
#self.lnworker.htlc_received(self, payment_hash)
pass
def balance(self, whose: HTLCOwner, *, ctx_owner=HTLCOwner.LOCAL, ctn: int = None) -> int:
assert type(whose) is HTLCOwner