1
0

lnchannel: when adding HTLCs, run checks for both directions

This commit is contained in:
SomberNight
2020-03-26 06:42:08 +01:00
parent 01207316aa
commit 5c8455d00b
2 changed files with 29 additions and 22 deletions

View File

@@ -671,7 +671,7 @@ class TestAvailableToSpend(ElectrumTestCase):
bob_channel._ignore_max_htlc_value = False
with self.assertRaises(lnutil.PaymentFailure):
alice_channel.add_htlc(htlc_dict)
with self.assertRaises(lnutil.PaymentFailure):
with self.assertRaises(lnutil.RemoteMisbehaving):
bob_channel.receive_htlc(htlc_dict)
alice_channel._ignore_max_htlc_value = True