mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-12-13 22:36:16 +01:00
htlcswitch: properly populate CommitFee for channels created in tests
This commit is contained in:
@@ -185,6 +185,7 @@ func createTestChannel(alicePrivKey, bobPrivKey []byte,
|
|||||||
Capacity: channelCapacity,
|
Capacity: channelCapacity,
|
||||||
LocalBalance: lnwire.NewMSatFromSatoshis(aliceAmount - commitFee),
|
LocalBalance: lnwire.NewMSatFromSatoshis(aliceAmount - commitFee),
|
||||||
RemoteBalance: lnwire.NewMSatFromSatoshis(bobAmount),
|
RemoteBalance: lnwire.NewMSatFromSatoshis(bobAmount),
|
||||||
|
CommitFee: commitFee,
|
||||||
CommitTx: *aliceCommitTx,
|
CommitTx: *aliceCommitTx,
|
||||||
CommitSig: bytes.Repeat([]byte{1}, 71),
|
CommitSig: bytes.Repeat([]byte{1}, 71),
|
||||||
RemoteCurrentRevocation: bobCommitPoint,
|
RemoteCurrentRevocation: bobCommitPoint,
|
||||||
@@ -204,6 +205,7 @@ func createTestChannel(alicePrivKey, bobPrivKey []byte,
|
|||||||
Capacity: channelCapacity,
|
Capacity: channelCapacity,
|
||||||
LocalBalance: lnwire.NewMSatFromSatoshis(bobAmount),
|
LocalBalance: lnwire.NewMSatFromSatoshis(bobAmount),
|
||||||
RemoteBalance: lnwire.NewMSatFromSatoshis(aliceAmount - commitFee),
|
RemoteBalance: lnwire.NewMSatFromSatoshis(aliceAmount - commitFee),
|
||||||
|
CommitFee: commitFee,
|
||||||
CommitTx: *bobCommitTx,
|
CommitTx: *bobCommitTx,
|
||||||
CommitSig: bytes.Repeat([]byte{1}, 71),
|
CommitSig: bytes.Repeat([]byte{1}, 71),
|
||||||
RemoteCurrentRevocation: aliceCommitPoint,
|
RemoteCurrentRevocation: aliceCommitPoint,
|
||||||
|
|||||||
Reference in New Issue
Block a user