htlcswitch: properly populate CommitFee for channels created in tests

This commit is contained in:
Olaoluwa Osuntokun
2017-09-25 11:07:28 -07:00
parent bd63e048d8
commit 8ecb8c70bb

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,