electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit b26e028d9ba2de4d65aa804264db4a7268af0f58
parent 2dd1cb86fa76d3ba5c3f0cdc4bd57a7ebf34d725
Author: Janus <ysangkok@gmail.com>
Date:   Mon,  9 Jul 2018 14:48:39 +0200

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

Diffstat:
Mlib/tests/test_lnhtlc.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/tests/test_lnhtlc.py b/lib/tests/test_lnhtlc.py @@ -319,7 +319,7 @@ class TestLNHTLCDust(unittest.TestCase): self.assertEqual(len(alice_channel.local_commitment.outputs()), 3) self.assertEqual(len(bob_channel.local_commitment.outputs()), 2) 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) alice_channel.receive_htlc_settle(paymentPreimage, aliceHtlcIndex) force_state_transition(bob_channel, alice_channel)