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. |
||
|---|---|---|
| .. | ||
| config.go | ||
| daemon.go | ||
| daemon_test.go | ||
| htlc_confirmed_recovery.go | ||
| htlc_confirmed_recovery_test.go | ||
| log.go | ||
| macaroons.go | ||
| migration.go | ||
| register_default.go | ||
| run.go | ||
| swapclient_server.go | ||
| swapclient_server_debug.go | ||
| swapclient_server_deposit_test.go | ||
| swapclient_server_staticaddr_test.go | ||
| swapclient_server_test.go | ||
| sweep_htlc.go | ||
| sweep_htlc_test.go | ||
| utils.go | ||
| view.go | ||