mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
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. |
||
|---|---|---|
| .. | ||
| chainnotifier_mock.go | ||
| context.go | ||
| invoices_mock.go | ||
| keys.go | ||
| lightning_client_mock.go | ||
| lnd_services_mock.go | ||
| log.go | ||
| route_hints.go | ||
| router_mock.go | ||
| signer_mock.go | ||
| testutils.go | ||
| timeout.go | ||
| versioner_mock.go | ||
| walletkit_mock.go | ||