multi: add zero-conf, scid-alias channel-types to rpc
This allows the open channel rpcs to use the zero-conf or scid-alias channel types.
This commit is contained in:
6 files changed
+1966
-1878
No files matched your search
@@ -989,6 +989,15 @@ type OpenChannelParams struct {
|
||||
// CommitmentType is the commitment type that should be used for the
|
||||
// channel to be opened.
|
||||
CommitmentType lnrpc.CommitmentType
|
||||
|
||||
// ZeroConf is used to determine if the channel will be a zero-conf
|
||||
// channel. This only works if the explicit negotiation is used with
|
||||
// anchors or script enforced leases.
|
||||
ZeroConf bool
|
||||
|
||||
// ScidAlias denotes whether the channel will be an option-scid-alias
|
||||
// channel type negotiation.
|
||||
ScidAlias bool
|
||||
}
|
||||
|
||||
// OpenChannel attempts to open a channel between srcNode and destNode with the
|
||||
@@ -1027,6 +1036,8 @@ func (n *NetworkHarness) OpenChannel(srcNode, destNode *HarnessNode,
|
||||
FundingShim: p.FundingShim,
|
||||
SatPerByte: int64(p.SatPerVByte),
|
||||
CommitmentType: p.CommitmentType,
|
||||
ZeroConf: p.ZeroConf,
|
||||
ScidAlias: p.ScidAlias,
|
||||
}
|
||||
|
||||
// We need to use n.runCtx here to keep the response stream alive after
|
||||
|
||||
Reference in new issue
Block a user