Skip to content

Commit 950b5f1

Browse files
committed
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.
1 parent 2d446b3 commit 950b5f1

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

loopin_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,8 @@ func TestLoopInSuccess(t *testing.T) {
127127
}
128128

129129
// TestLoopInSwapInvoiceRouteHintsMatchProbe asserts that explicit route hints
130-
// are preserved on both loop-in invoices. The probe invoice already keeps the
131-
// requested hints, while the swap invoice currently loses them via the
132-
// lndclient AddInvoice wrapper.
130+
// are preserved on both loop-in invoices so the swap invoice matches the probe
131+
// invoice.
133132
func TestLoopInSwapInvoiceRouteHintsMatchProbe(t *testing.T) {
134133
t.Parallel()
135134

staticaddr/loopin/actions_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ func TestMonitorInvoiceAndHtlcTxReRegistersOnConfErr(t *testing.T) {
130130

131131
// TestInitHtlcActionPreservesRouteHints asserts that static-address loop-in
132132
// propagates explicit route hints into the encoded swap invoice sent to the
133-
// server. This currently fails because lndclient.AddInvoice drops route hints.
133+
// server.
134134
func TestInitHtlcActionPreservesRouteHints(t *testing.T) {
135135
t.Parallel()
136136

0 commit comments

Comments
 (0)