From 8ecb8c70bb0d603f443033bde4d3f4fe296d38dc Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Mon, 25 Sep 2017 11:07:28 -0700 Subject: [PATCH] htlcswitch: properly populate CommitFee for channels created in tests --- htlcswitch/test_utils.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/htlcswitch/test_utils.go b/htlcswitch/test_utils.go index 0e6b3f1c..6a10f5ea 100644 --- a/htlcswitch/test_utils.go +++ b/htlcswitch/test_utils.go @@ -185,6 +185,7 @@ func createTestChannel(alicePrivKey, bobPrivKey []byte, Capacity: channelCapacity, LocalBalance: lnwire.NewMSatFromSatoshis(aliceAmount - commitFee), RemoteBalance: lnwire.NewMSatFromSatoshis(bobAmount), + CommitFee: commitFee, CommitTx: *aliceCommitTx, CommitSig: bytes.Repeat([]byte{1}, 71), RemoteCurrentRevocation: bobCommitPoint, @@ -204,6 +205,7 @@ func createTestChannel(alicePrivKey, bobPrivKey []byte, Capacity: channelCapacity, LocalBalance: lnwire.NewMSatFromSatoshis(bobAmount), RemoteBalance: lnwire.NewMSatFromSatoshis(aliceAmount - commitFee), + CommitFee: commitFee, CommitTx: *bobCommitTx, CommitSig: bytes.Repeat([]byte{1}, 71), RemoteCurrentRevocation: aliceCommitPoint,