htlcswitch: properly populate CommitFee for channels created in tests

This commit is contained in:
Olaoluwa Osuntokun committed 2017-09-25 11:07:33 -07:00
1 parent bd63e048d8
commit 8ecb8c70bb
1 file changed
+2
+2
View File
@@ -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,