From 51bdf040e3dd52aee7a855523644fa6ec1ae85bd Mon Sep 17 00:00:00 2001 From: sputn1ck Date: Tue, 21 Jan 2025 12:39:38 +0100 Subject: [PATCH] loopins: add private flag when creating invoice --- loopin.go | 2 ++ staticaddr/loopin/actions.go | 1 + 2 files changed, 3 insertions(+) diff --git a/loopin.go b/loopin.go index bd694cd6..45f639a0 100644 --- a/loopin.go +++ b/loopin.go @@ -177,6 +177,7 @@ func newLoopInSwap(globalCtx context.Context, cfg *swapConfig, Memo: "swap", Expiry: 3600 * 24 * 365, RouteHints: request.RouteHints, + Private: true, }, ) if err != nil { @@ -197,6 +198,7 @@ func newLoopInSwap(globalCtx context.Context, cfg *swapConfig, Memo: "loop in probe", Expiry: 3600, RouteHints: request.RouteHints, + Private: true, }, ) if err != nil { diff --git a/staticaddr/loopin/actions.go b/staticaddr/loopin/actions.go index 992da27a..54d697eb 100644 --- a/staticaddr/loopin/actions.go +++ b/staticaddr/loopin/actions.go @@ -103,6 +103,7 @@ func (f *FSM) InitHtlcAction(ctx context.Context, Memo: "static address loop-in", Expiry: 3600 * 24 * 365, RouteHints: f.loopIn.RouteHints, + Private: true, }, ) if err != nil {