ln: test fix: our commit fee is implicit from outputs

This commit is contained in:
Janus 2018-07-09 14:48:39 +02:00 committed by ThomasV
parent 2dd1cb86fa
commit b26e028d9b

View file

@ -319,7 +319,7 @@ class TestLNHTLCDust(unittest.TestCase):
self.assertEqual(len(alice_channel.local_commitment.outputs()), 3) self.assertEqual(len(alice_channel.local_commitment.outputs()), 3)
self.assertEqual(len(bob_channel.local_commitment.outputs()), 2) self.assertEqual(len(bob_channel.local_commitment.outputs()), 2)
default_fee = calc_static_fee(0) default_fee = calc_static_fee(0)
self.assertEqual(bob_channel.local_commit_fee, default_fee) self.assertEqual(bob_channel.local_commit_fee, default_fee + htlcAmt)
bob_channel.settle_htlc(paymentPreimage, htlc.htlc_id) bob_channel.settle_htlc(paymentPreimage, htlc.htlc_id)
alice_channel.receive_htlc_settle(paymentPreimage, aliceHtlcIndex) alice_channel.receive_htlc_settle(paymentPreimage, aliceHtlcIndex)
force_state_transition(bob_channel, alice_channel) force_state_transition(bob_channel, alice_channel)