mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-22 22:25:24 +01:00
lncli: add outgoing_chanid to queryroutes
This commit is contained in:
parent
8668248d96
commit
4ffe744364
1 changed files with 6 additions and 0 deletions
|
@ -2142,6 +2142,11 @@ var queryRoutesCommand = cli.Command{
|
|||
Name: "use_mc",
|
||||
Usage: "use mission control probabilities",
|
||||
},
|
||||
cli.Uint64Flag{
|
||||
Name: "outgoing_chanid",
|
||||
Usage: "(optional) the channel id of the channel " +
|
||||
"that must be taken to the first hop",
|
||||
},
|
||||
cltvLimitFlag,
|
||||
},
|
||||
Action: actionDecorator(queryRoutes),
|
||||
|
@ -2194,6 +2199,7 @@ func queryRoutes(ctx *cli.Context) error {
|
|||
FinalCltvDelta: int32(ctx.Int("final_cltv_delta")),
|
||||
UseMissionControl: ctx.Bool("use_mc"),
|
||||
CltvLimit: uint32(ctx.Uint64(cltvLimitFlag.Name)),
|
||||
OutgoingChanId: ctx.Uint64("outgoing_chanid"),
|
||||
}
|
||||
|
||||
route, err := client.QueryRoutes(ctxb, req)
|
||||
|
|
Loading…
Add table
Reference in a new issue