liquidity: gate static autoloop

Static-address loop-ins in autoloop are still experimental. Reject
loop_in_source=static-address at the RPC boundary unless loopd was started
with --experimental, and pass the same opt-in into the liquidity manager so
persisted params cannot bypass the gate after restart.

The existing static swap accounting remains wired through the manager; the
gate only controls accepting and planning new static-address autoloops.
This commit is contained in:
Boris Nagaev 2026-05-21 15:28:02 -05:00
parent 8d6df2bf20
commit 7fcc508193
No known key found for this signature in database
11 changed files with 88 additions and 6 deletions

View file

@ -343,7 +343,8 @@ var setParamsCommand = &cli.Command{
&cli.StringFlag{
Name: "loopinsource",
Usage: "the loop-in source to use for autoloop rules: " +
"wallet or static-address.",
"wallet or static-address. Static-address " +
"requires loopd --experimental.",
},
&cli.BoolFlag{
Name: "easyautoloop",