From 7fc07ae99b3867915fae5d54eba42c252f44ecde Mon Sep 17 00:00:00 2001 From: Slyghtning Date: Thu, 9 Oct 2025 11:54:26 +0200 Subject: [PATCH] cmd: add --includealleasypeers --- cmd/loop/liquidity.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/cmd/loop/liquidity.go b/cmd/loop/liquidity.go index 8798b89a..e6c575f7 100644 --- a/cmd/loop/liquidity.go +++ b/cmd/loop/liquidity.go @@ -357,6 +357,12 @@ var setParamsCommand = &cli.Command{ "easy autoloop channel selection; repeat " + "--easyautoloop_excludepeer for multiple peers", }, + &cli.BoolFlag{ + Name: "easyatutoloop_includeallpeers", + Usage: "include all peers back into easy autoloop by " + + "clearing the exclusion list. It cannot be " + + "combined with --easyautoloop_excludepeer", + }, &cli.BoolFlag{ Name: "asset_easyautoloop", Usage: "set to true to enable asset easy autoloop, which " + @@ -574,6 +580,18 @@ func setParams(ctx context.Context, cmd *cli.Command) error { flagSet = true } + // If easyatutoloop_includeallpeers is set, clear the entire exclusion + // list. + if cmd.IsSet("easyatutoloop_includeallpeers") { + if cmd.IsSet("easyautoloop_excludepeer") { + return fmt.Errorf("easyatutoloop_includeallpeers " + + "cannot be used with " + + "--easyautoloop_excludepeer") + } + params.EasyAutoloopExcludedPeers = nil + flagSet = true + } + if cmd.IsSet("easyautoloop_excludepeer") { peers := cmd.StringSlice("easyautoloop_excludepeer") // Reset and set according to a provided list.