1
0

ln: avoid code duplication

This commit is contained in:
Janus
2018-06-15 16:35:29 +02:00
committed by ThomasV
parent d1769472bd
commit 399fe08047
3 changed files with 63 additions and 112 deletions

View File

@@ -193,7 +193,7 @@ class TestLNBaseHTLCStateMachine(unittest.TestCase):
# Now we'll repeat a similar exchange, this time with Bob settling the
# HTLC once he learns of the preimage.
preimage = paymentPreimage
bob_channel.settle_htlc(preimage, bobHtlcIndex, None, None, None)
bob_channel.settle_htlc(preimage, bobHtlcIndex)
alice_channel.receive_htlc_settle(preimage, aliceHtlcIndex)