File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed
Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change @@ -224,6 +224,30 @@ var setParamsCommand = cli.Command{
224224 "previously had a failed swap will be " +
225225 "included in suggestions." ,
226226 },
227+ cli.BoolFlag {
228+ Name : "autoout" ,
229+ Usage : "set to true to enable automated dispatch " +
230+ "of loop out swaps, limited to the budget " +
231+ "set by autobudget" ,
232+ },
233+ cli.Uint64Flag {
234+ Name : "autobudget" ,
235+ Usage : "the maximum amount of fees in satoshis that " +
236+ "automatically dispatched loop out swaps may " +
237+ "spend" ,
238+ },
239+ cli.Uint64Flag {
240+ Name : "budgetstart" ,
241+ Usage : "the start time for the automated loop " +
242+ "out budget, expressed as a unix timestamp " +
243+ "in seconds" ,
244+ },
245+ cli.Uint64Flag {
246+ Name : "autoinflight" ,
247+ Usage : "the maximum number of automatically " +
248+ "dispatched swaps that we allow to be in " +
249+ "flight" ,
250+ },
227251 },
228252 Action : setParams ,
229253}
@@ -304,6 +328,26 @@ func setParams(ctx *cli.Context) error {
304328 flagSet = true
305329 }
306330
331+ if ctx .IsSet ("autoout" ) {
332+ params .AutoLoopOut = ctx .Bool ("autoout" )
333+ flagSet = true
334+ }
335+
336+ if ctx .IsSet ("autobudget" ) {
337+ params .AutoOutBudgetSat = ctx .Uint64 ("autobudget" )
338+ flagSet = true
339+ }
340+
341+ if ctx .IsSet ("budgetstart" ) {
342+ params .AutoOutBudgetStartSec = ctx .Uint64 ("budgetstart" )
343+ flagSet = true
344+ }
345+
346+ if ctx .IsSet ("autoinflight" ) {
347+ params .AutoMaxInFlight = ctx .Uint64 ("autoinflight" )
348+ flagSet = true
349+ }
350+
307351 if ! flagSet {
308352 return fmt .Errorf ("at least one flag required to set params" )
309353 }
You can’t perform that action at this time.
0 commit comments