loop/test
Boris Nagaev d324b4bfd8
loop: omit payment hops in cost migration
The cost cleanup migration pages through LND payments only to build
a payment-hash to fee map. It does not inspect HTLC attempts,
routes, or per-hop data; pagination still uses the top-level index
offsets returned by ListPayments.

Setting OmitHops is safe for this migration because LND only strips
hop-level route data from HTLC attempts, while preserving the top-level
payment fields the migration reads: hash, fee, and response offsets.
This reduces response size and query cost for nodes with many or large
MPP payments without changing the calculated swap costs.

The migration test records the mocked ListPayments requests and asserts
that OmitHops is set.
2026-06-22 12:46:12 -05:00
..
chainnotifier_mock.go lint: fix linter issues 2026-03-09 14:39:45 +01:00
context.go test: fix nil dereference 2025-08-19 21:57:00 +02:00
invoices_mock.go loop+test: add loop-in route hint regression 2026-04-17 21:38:36 -05:00
keys.go multi: bump btcec/v2 and btcutil to new versions 2022-03-25 11:00:16 +01:00
lightning_client_mock.go loop: omit payment hops in cost migration 2026-06-22 12:46:12 -05:00
lnd_services_mock.go loop: omit payment hops in cost migration 2026-06-22 12:46:12 -05:00
log.go multi: update lnd compile-time dependency to v0.19.0 2025-03-10 22:59:49 +01:00
route_hints.go test: add route hint assertion helper 2026-04-17 21:38:36 -05:00
router_mock.go linter: fix lint issues after linter v2 update 2025-08-19 21:57:00 +02:00
signer_mock.go multi: bump lnd compile time dependency to v0.18.4-beta 2024-10-22 09:12:31 +02:00
testutils.go multi: bump lnd compile time dependency to v0.18.4-beta 2024-10-22 09:12:31 +02:00
timeout.go test.Guard: make timeout configurable 2024-08-13 09:20:31 -03:00
versioner_mock.go multi: bump lnd compile time dependency to v0.18.4-beta 2024-10-22 09:12:31 +02:00
walletkit_mock.go test: unit test ListUnspentDeposits 2025-08-22 16:18:15 +02:00