diff --git a/lntest/harness.go b/lntest/harness.go index 004af9dd1..d2648a5d3 100644 --- a/lntest/harness.go +++ b/lntest/harness.go @@ -982,6 +982,10 @@ type OpenChannelParams struct { // SatPerVByte is the amount of satoshis to spend in chain fees per virtual // byte of the transaction. SatPerVByte btcutil.Amount + + // CommitmentType is the commitment type that should be used for the + // channel to be opened. + CommitmentType lnrpc.CommitmentType } // OpenChannel attempts to open a channel between srcNode and destNode with the @@ -1025,6 +1029,7 @@ func (n *NetworkHarness) OpenChannel(srcNode, destNode *HarnessNode, RemoteMaxHtlcs: uint32(p.RemoteMaxHtlcs), FundingShim: p.FundingShim, SatPerByte: int64(p.SatPerVByte), + CommitmentType: p.CommitmentType, } respStream, err := srcNode.OpenChannel(ctx, openReq) diff --git a/lntest/itest/lnd_multi-hop_test.go b/lntest/itest/lnd_multi-hop_test.go index 39a6b7405..0d33e47d5 100644 --- a/lntest/itest/lnd_multi-hop_test.go +++ b/lntest/itest/lnd_multi-hop_test.go @@ -224,7 +224,8 @@ func createThreeHopNetwork(t *harnessTest, net *lntest.NetworkHarness, aliceChanPoint := openChannelAndAssert( t, net, alice, bob, lntest.OpenChannelParams{ - Amt: chanAmt, + Amt: chanAmt, + CommitmentType: c, }, ) @@ -264,7 +265,8 @@ func createThreeHopNetwork(t *harnessTest, net *lntest.NetworkHarness, bobChanPoint := openChannelAndAssert( t, net, bob, carol, lntest.OpenChannelParams{ - Amt: chanAmt, + Amt: chanAmt, + CommitmentType: c, }, ) ctxt, _ = context.WithTimeout(ctxb, defaultTimeout)