From 5e24beb5a7e0a67447f21521ad26dda1805a2bb2 Mon Sep 17 00:00:00 2001 From: carla Date: Wed, 15 Dec 2021 09:11:48 +0200 Subject: [PATCH] loop: add htlc conf target to set params --- cmd/loop/liquidity.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cmd/loop/liquidity.go b/cmd/loop/liquidity.go index 5413b21..bc2fffa 100644 --- a/cmd/loop/liquidity.go +++ b/cmd/loop/liquidity.go @@ -292,6 +292,11 @@ var setParamsCommand = cli.Command{ Usage: "the maximum amount in satoshis that the " + "autoloop client will dispatch per-swap", }, + cli.IntFlag{ + Name: "htlc_conf", + Usage: "the confirmation target for loop in on-chain " + + "htlcs", + }, }, Action: setParams, } @@ -422,6 +427,11 @@ func setParams(ctx *cli.Context) error { flagSet = true } + if ctx.IsSet("htlc_conf") { + params.HtlcConfTarget = int32(ctx.Int("htlc_conf")) + flagSet = true + } + if !flagSet { return fmt.Errorf("at least one flag required to set params") }