File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -248,6 +248,16 @@ var setParamsCommand = cli.Command{
248
248
"dispatched swaps that we allow to be in " +
249
249
"flight" ,
250
250
},
251
+ cli.Uint64Flag {
252
+ Name : "minamt" ,
253
+ Usage : "the minimum amount in satoshis that the " +
254
+ "autoloop client will dispatch per-swap" ,
255
+ },
256
+ cli.Uint64Flag {
257
+ Name : "maxamt" ,
258
+ Usage : "the maximum amount in satoshis that the " +
259
+ "autoloop client will dispatch per-swap" ,
260
+ },
251
261
},
252
262
Action : setParams ,
253
263
}
@@ -348,6 +358,16 @@ func setParams(ctx *cli.Context) error {
348
358
flagSet = true
349
359
}
350
360
361
+ if ctx .IsSet ("minamt" ) {
362
+ params .MinSwapAmount = ctx .Uint64 ("minamt" )
363
+ flagSet = true
364
+ }
365
+
366
+ if ctx .IsSet ("maxamt" ) {
367
+ params .MaxSwapAmount = ctx .Uint64 ("maxamt" )
368
+ flagSet = true
369
+ }
370
+
351
371
if ! flagSet {
352
372
return fmt .Errorf ("at least one flag required to set params" )
353
373
}
You can’t perform that action at this time.
0 commit comments