File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -357,6 +357,12 @@ var setParamsCommand = &cli.Command{
357357 "easy autoloop channel selection; repeat " +
358358 "--excludeeasypeer for multiple peers" ,
359359 },
360+ & cli.BoolFlag {
361+ Name : "includealleasypeers" ,
362+ Usage : "include all peers back into easy autoloop by " +
363+ "clearing the exclusion list; cannot be " +
364+ "combined with --excludeeasypeer" ,
365+ },
360366 & cli.BoolFlag {
361367 Name : "asset_easyautoloop" ,
362368 Usage : "set to true to enable asset easy autoloop, which " +
@@ -574,6 +580,15 @@ func setParams(ctx context.Context, cmd *cli.Command) error {
574580 flagSet = true
575581 }
576582
583+ // If includealleasypeers is set, clear the entire exclusion list.
584+ if cmd .IsSet ("includealleasypeers" ) {
585+ if cmd .IsSet ("excludeeasypeer" ) {
586+ return fmt .Errorf ("includealleasypeers cannot be used with --excludeeasypeer" )
587+ }
588+ params .EasyAutoloopExcludedPeers = nil
589+ flagSet = true
590+ }
591+
577592 if cmd .IsSet ("excludeeasypeer" ) {
578593 peers := cmd .StringSlice ("excludeeasypeer" )
579594 // Reset and set according to a provided list.
You can’t perform that action at this time.
0 commit comments