mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
Keep replacement UTXOs as fresh deposits while preserving the original deposit record and selected outpoint snapshot for pending swaps. Before signing a static loop-in HTLC, check each original selected outpoint with GetTxOut(..., includeMempool=true). Cancel the pending invoice only when that check reports an original outpoint unavailable; lookup errors fail the action without canceling so transient chain backend errors do not incorrectly abandon the swap. Keep recovered loop-ins using their stored outpoint snapshot and cover replacement discovery and cancellation in tests. |
||
|---|---|---|
| .. | ||
| 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 | ||