lntest: use explicit channel commitment negotiation for multi-hop itests
This commit is contained in:
1 parent
449f207217
commit
523eef5cf4
2 files changed
+9
-2
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user