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. |
||
|---|---|---|
| .. | ||
| actions.go | ||
| actions_test.go | ||
| deposit.go | ||
| deposit_test.go | ||
| fsm.go | ||
| interface.go | ||
| log.go | ||
| manager.go | ||
| manager_height_test.go | ||
| manager_reconcile_test.go | ||
| manager_test.go | ||
| sql_store.go | ||
| sql_store_test.go | ||