loop/staticaddr
Slyghtning 6582aa0807
staticaddr/loopin: check deposits before htlc signing
Before we send HTLC signatures to the server, the server cannot publish
the HTLC transaction. After those signatures are handed over, the server
can publish an HTLC that spends the selected deposits even if it never
pays the swap invoice.

Defend against stale local deposit state by checking the wallet's current
txout view immediately before signing. A deposit can have been spent by a
known withdrawal, channel open, timeout sweep, replacement, or another
wallet transaction while the loop-in FSM is recovering or while earlier
state still marked it as selected.

Failing before signing leaves the server without spend authority over an
unavailable input. Include mempool spends in the check so wallet-known
unconfirmed spends are treated as unavailable too.
2026-07-08 09:02:06 +02:00
..
address lint: enable deprecation checks 2026-06-22 12:46:12 -05:00
deposit staticaddr/deposit: canonicalize multi-deposit locks 2026-07-08 09:01:17 +02:00
loopin staticaddr/loopin: check deposits before htlc signing 2026-07-08 09:02:06 +02:00
openchannel staticaddr/deposit: reject duplicate outpoints 2026-07-08 09:00:26 +02:00
script staticaddr: fix timeout comment typo 2026-05-27 11:49:49 +02:00
staticutil staticaddr/deposit: reject duplicate outpoints 2026-07-08 09:00:26 +02:00
version multi: do not rename swapserverrpc to looprpc 2024-09-10 09:54:17 -03:00
withdraw staticaddr/deposit: guard confirmation height access 2026-07-08 09:01:01 +02:00
log.go staticaddr: open channel manager 2026-02-26 20:57:26 +01:00