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
@@ -210,6 +210,16 @@ var openChannelCommand = cli.Command{
|
||||
"propose to the remote peer (%q, %q)",
|
||||
channelTypeTweakless, channelTypeAnchors),
|
||||
},
|
||||
cli.BoolFlag{
|
||||
Name: "zero_conf",
|
||||
Usage: "(optional) whether a zero-conf channel open " +
|
||||
"should be attempted.",
|
||||
},
|
||||
cli.BoolFlag{
|
||||
Name: "scid_alias",
|
||||
Usage: "(optional) whether a scid-alias channel type" +
|
||||
" should be negotiated.",
|
||||
},
|
||||
},
|
||||
Action: actionDecorator(openChannel),
|
||||
}
|
||||
@@ -249,6 +259,8 @@ func openChannel(ctx *cli.Context) error {
|
||||
CloseAddress: ctx.String("close_address"),
|
||||
RemoteMaxValueInFlightMsat: ctx.Uint64("remote_max_value_in_flight_msat"),
|
||||
MaxLocalCsv: uint32(ctx.Uint64("max_local_csv")),
|
||||
ZeroConf: ctx.Bool("zero_conf"),
|
||||
ScidAlias: ctx.Bool("scid_alias"),
|
||||
}
|
||||
|
||||
switch {
|
||||
|
||||
Reference in new issue
Block a user