mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-22 22:25:24 +01:00
htlcswitch: properly populate CommitFee for channels created in tests
This commit is contained in:
parent
bd63e048d8
commit
8ecb8c70bb
1 changed files with 2 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue