loop/loopdb/sqlc/queries
Slyghtning 9fb4a5d606
staticaddr/loopin: persist risk decisions
Store the server's static loop-in confirmation-risk decision and the time it
was received. This lets recovered swaps reconstruct whether payment waiting had
already started and how much of the payment timeout remains.

Wire notification handling to persist accepted and rejected decisions before
caching and forwarding them. If the swap row is not present yet, the
notification is still cached so the per-swap waiter can replay and store the
decision later.

Recover accepted decisions by starting the payment deadline from the persisted
decision time, and recover rejected decisions by canceling the invoice and
failing the swap instead of waiting forever.
2026-05-22 11:22:44 +02:00
..
batch.sql loopdb: remove unused method ConfirmBatch 2025-06-26 14:01:16 -03:00
instantout.sql sqlc: remove trailing spaces in queries 2024-05-31 12:28:02 -03:00
liquidity_params.sql loopdb: implement sqlite queries 2023-06-20 17:31:40 +02:00
migration_tracker.sql loopdb: add ability to track manual migrations 2024-06-03 14:54:18 +02:00
reservations.sql reservation: add protocol version 2025-04-30 14:23:47 +02:00
static_address_deposits.sql staticaddr: method to fetch deposits by outpoints 2025-07-29 15:52:54 +02:00
static_address_loopin.sql staticaddr/loopin: persist risk decisions 2026-05-22 11:22:44 +02:00
static_address_withdrawals.sql loopdb: withdrawal table and queries 2025-06-03 12:57:10 +02:00
static_addresses.sql staticaddr: add initiation height of address 2024-12-12 18:31:10 +01:00
swaps.sql loopdb: add asset params to store 2025-01-21 18:26:20 +01:00