Skip to content

Commit 2917e93

Browse files
committed
cmd: staticaddr fast-flag support
1 parent 1e61510 commit 2917e93

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

cmd/loop/staticaddr.go

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,12 @@ var staticAddressLoopInCommand = cli.Command{
485485
"is change it is sent back to the static " +
486486
"address.",
487487
},
488+
cli.BoolFlag{
489+
Name: "fast",
490+
Usage: "expedited publishing of the change output if " +
491+
"the swap creates one. This results in a " +
492+
"higher swap fee.",
493+
},
488494
lastHopFlag,
489495
labelFlag,
490496
routeHintsFlag,
@@ -573,7 +579,8 @@ func staticAddressLoopIn(ctx *cli.Context) error {
573579
depositOutpoints = ctx.StringSlice("utxo")
574580

575581
case selectedAmount > 0:
576-
// If only an amount is selected we will trigger coin selection.
582+
// If only an amount is selected, we will trigger coin
583+
// selection.
577584

578585
default:
579586
return fmt.Errorf("unknown quote request")
@@ -594,6 +601,7 @@ func staticAddressLoopIn(ctx *cli.Context) error {
594601
Private: ctx.Bool(privateFlag.Name),
595602
DepositOutpoints: depositOutpoints,
596603
AutoSelectDeposits: autoSelectDepositsForQuote,
604+
Fast: ctx.Bool("fast"),
597605
}
598606
quote, err := client.GetLoopInQuote(ctxb, quoteReq)
599607
if err != nil {
@@ -623,6 +631,7 @@ func staticAddressLoopIn(ctx *cli.Context) error {
623631
RouteHints: hints,
624632
Private: ctx.Bool("private"),
625633
PaymentTimeoutSeconds: paymentTimeoutSeconds,
634+
Fast: ctx.Bool("fast"),
626635
}
627636

628637
resp, err := client.StaticAddressLoopIn(ctxb, req)

0 commit comments

Comments
 (0)