From 950b5f1772033c0fd3daacfa3d3cfd1f4b9c4bd1 Mon Sep 17 00:00:00 2001 From: Boris Nagaev Date: Thu, 11 Jun 2026 14:57:27 -0500 Subject: [PATCH] test: refresh route hint preservation comments lndclient now forwards route hints through AddInvoice. These tests assert that Loop preserves explicit hints on generated loop-in invoices. Remove stale comments that described the old wrapper behavior as dropping hints. --- loopin_test.go | 5 ++--- staticaddr/loopin/actions_test.go | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/loopin_test.go b/loopin_test.go index 15a11e32..aa9fe9a0 100644 --- a/loopin_test.go +++ b/loopin_test.go @@ -127,9 +127,8 @@ func TestLoopInSuccess(t *testing.T) { } // TestLoopInSwapInvoiceRouteHintsMatchProbe asserts that explicit route hints -// are preserved on both loop-in invoices. The probe invoice already keeps the -// requested hints, while the swap invoice currently loses them via the -// lndclient AddInvoice wrapper. +// are preserved on both loop-in invoices so the swap invoice matches the probe +// invoice. func TestLoopInSwapInvoiceRouteHintsMatchProbe(t *testing.T) { t.Parallel() diff --git a/staticaddr/loopin/actions_test.go b/staticaddr/loopin/actions_test.go index 2543c752..b058e328 100644 --- a/staticaddr/loopin/actions_test.go +++ b/staticaddr/loopin/actions_test.go @@ -130,7 +130,7 @@ func TestMonitorInvoiceAndHtlcTxReRegistersOnConfErr(t *testing.T) { // TestInitHtlcActionPreservesRouteHints asserts that static-address loop-in // propagates explicit route hints into the encoded swap invoice sent to the -// server. This currently fails because lndclient.AddInvoice drops route hints. +// server. func TestInitHtlcActionPreservesRouteHints(t *testing.T) { t.Parallel()