loop/staticaddr/loopin
Slyghtning 7b29d9215e
staticaddr/loopin: list failed swaps by state
GetStaticAddressLoopInSwapsByStates passes a comma-separated
state list into a SQL LIKE membership check. The query wraps the
input with commas before matching latest update states as
comma-delimited tokens.

Wrapping that list in braces meant the first and last states
were not bounded by commas, so boundary entries in a state set
could be missed. In particular, Failed is the last final
static-address loop-in state, which made final-state queries skip
failed swaps.

Drop the braces from the serialized state list and extend the
SQL store test with a failed swap so the final-state boundary is
covered.
2026-06-01 10:46:52 +02:00
..
actions.go staticaddr/loopin: handle risk rejection notification 2026-06-01 10:46:52 +02:00
actions_test.go staticaddr/loopin: handle risk rejection notification 2026-06-01 10:46:52 +02:00
autoloop.go staticaddr: use dp autoloop selector 2026-05-22 02:20:36 -05:00
autoloop_dp.go staticaddr: use dp autoloop selector 2026-05-22 02:20:36 -05:00
autoloop_dp_test.go staticaddr: use dp autoloop selector 2026-05-22 02:20:36 -05:00
autoloop_test.go staticaddr: use dp autoloop selector 2026-05-22 02:20:36 -05:00
deduce_amount_test.go staticaddr: arbitrary loop-in amount 2025-09-25 11:13:34 +02:00
deposit_swaphash_migration.go staticaddr: migrate swap hashes to deposits 2025-08-01 11:26:32 +02:00
deposit_swaphash_migration_test.go staticaddr: selected swap amount migration 2025-09-25 11:13:35 +02:00
fsm.go lint: fix linter issues 2026-03-09 14:39:45 +01:00
interface.go staticaddr/loopin: handle risk rejection notification 2026-06-01 10:46:52 +02:00
log.go multi: update lnd compile-time dependency to v0.19.0 2025-03-10 22:59:49 +01:00
loopin.go staticaddr/loopin: wait for risk acceptance notification 2026-06-01 10:46:52 +02:00
loopin_test.go staticaddr: move address.Parameters to script package 2026-05-01 15:54:37 +05:30
manager.go staticaddr: cancel loop-ins when deposit inputs vanish 2026-06-01 10:46:51 +02:00
manager_test.go staticaddr: apply confirmation policy by flow 2026-06-01 10:46:50 +02:00
selected_amount_migration.go staticaddr: selected swap amount migration 2025-09-25 11:13:35 +02:00
selected_amount_migration_test.go staticaddr: selected swap amount migration 2025-09-25 11:13:35 +02:00
sql_store.go staticaddr/loopin: list failed swaps by state 2026-06-01 10:46:52 +02:00
sql_store_test.go staticaddr/loopin: list failed swaps by state 2026-06-01 10:46:52 +02:00
txout_checker.go staticaddr: cancel loop-ins when deposit inputs vanish 2026-06-01 10:46:51 +02:00