cmd: staticaddr fast-flag support

This commit is contained in:
Slyghtning 2025-10-01 08:52:56 +02:00
parent aaeeefee00
commit 25485226e4
No known key found for this signature in database
GPG key ID: F82D456EA023C9BF

View file

@ -485,6 +485,12 @@ var staticAddressLoopInCommand = cli.Command{
"is change it is sent back to the static " +
"address.",
},
cli.BoolFlag{
Name: "fast",
Usage: "Usage: complete the swap faster by paying a " +
"higher fee, so the change output is " +
"available sooner",
},
lastHopFlag,
labelFlag,
routeHintsFlag,
@ -573,7 +579,8 @@ func staticAddressLoopIn(ctx *cli.Context) error {
depositOutpoints = ctx.StringSlice("utxo")
case selectedAmount > 0:
// If only an amount is selected we will trigger coin selection.
// If only an amount is selected, we will trigger coin
// selection.
default:
return fmt.Errorf("unknown quote request")
@ -594,6 +601,7 @@ func staticAddressLoopIn(ctx *cli.Context) error {
Private: ctx.Bool(privateFlag.Name),
DepositOutpoints: depositOutpoints,
AutoSelectDeposits: autoSelectDepositsForQuote,
Fast: ctx.Bool("fast"),
}
quote, err := client.GetLoopInQuote(ctxb, quoteReq)
if err != nil {
@ -623,6 +631,7 @@ func staticAddressLoopIn(ctx *cli.Context) error {
RouteHints: hints,
Private: ctx.Bool("private"),
PaymentTimeoutSeconds: paymentTimeoutSeconds,
Fast: ctx.Bool("fast"),
}
resp, err := client.StaticAddressLoopIn(ctxb, req)