loop/loopdb/sqlc
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
..
migrations staticaddr/loopin: persist risk decisions 2026-05-22 11:22:44 +02:00
queries staticaddr/loopin: persist risk decisions 2026-05-22 11:22:44 +02:00
batch.sql.go loopdb: remove unused method ConfirmBatch 2025-06-26 14:01:16 -03:00
db.go loopdb: bump sqlc to 1.25.0 2024-03-20 13:57:11 +01:00
instantout.sql.go sqlc: remove trailing spaces in queries 2024-05-31 12:28:02 -03:00
liquidity_params.sql.go loopdb: bump sqlc to 1.25.0 2024-03-20 13:57:11 +01:00
migration_tracker.sql.go loopdb: add ability to track manual migrations 2024-06-03 14:54:18 +02:00
models.go staticaddr/loopin: persist risk decisions 2026-05-22 11:22:44 +02:00
querier.go staticaddr/loopin: persist risk decisions 2026-05-22 11:22:44 +02:00
reservations.sql.go reservation: add protocol version 2025-04-30 14:23:47 +02:00
static_address_deposits.sql.go staticaddr: migrate swap hashes to deposits 2025-08-01 11:26:32 +02:00
static_address_loopin.sql.go staticaddr/loopin: persist risk decisions 2026-05-22 11:22:44 +02:00
static_address_withdrawals.sql.go loopdb: withdrawal table and queries 2025-06-03 12:57:10 +02:00
static_addresses.sql.go staticaddr: add initiation height of address 2024-12-12 18:31:10 +01:00
swaps.sql.go loopdb: add asset params to store 2025-01-21 18:26:20 +01:00