mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-11-26 22:17:51 +01:00
lncli: add min_htlc_msat to openchannel
This commit is contained in:
@@ -431,6 +431,11 @@ var openChannelCommand = cli.Command{
|
|||||||
"must be explicitly told about it to be able " +
|
"must be explicitly told about it to be able " +
|
||||||
"to route through it",
|
"to route through it",
|
||||||
},
|
},
|
||||||
|
cli.Int64Flag{
|
||||||
|
Name: "min_htlc_msat",
|
||||||
|
Usage: "(optional) the minimum value we will require " +
|
||||||
|
"for incoming HTLCs on the channel",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
Action: actionDecorator(openChannel),
|
Action: actionDecorator(openChannel),
|
||||||
}
|
}
|
||||||
@@ -458,6 +463,7 @@ func openChannel(ctx *cli.Context) error {
|
|||||||
req := &lnrpc.OpenChannelRequest{
|
req := &lnrpc.OpenChannelRequest{
|
||||||
TargetConf: int32(ctx.Int64("conf_target")),
|
TargetConf: int32(ctx.Int64("conf_target")),
|
||||||
SatPerByte: ctx.Int64("sat_per_byte"),
|
SatPerByte: ctx.Int64("sat_per_byte"),
|
||||||
|
MinHtlcMsat: ctx.Int64("min_htlc_msat"),
|
||||||
}
|
}
|
||||||
|
|
||||||
switch {
|
switch {
|
||||||
|
|||||||
Reference in New Issue
Block a user