mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
The final-state query previously formatted the state list with braces, which broke the comma-delimited match for both boundary entries: the first state was compared with a leading brace and the last state with a trailing brace. Final-state callers need swaps at both ends of the list, including HtlcTimeoutSwept and Failed, to remain visible once they reach a terminal status. Return the final-state list as plain comma-separated state names, update the store comment to match the query format, and extend the store test so it inserts and retrieves swaps in the first final state, a middle final state, and the last final state without relying on result order. |
||
|---|---|---|
| .. | ||
| actions.go | ||
| actions_test.go | ||
| autoloop.go | ||
| autoloop_dp.go | ||
| autoloop_dp_test.go | ||
| autoloop_test.go | ||
| deduce_amount_test.go | ||
| deposit_swaphash_migration.go | ||
| deposit_swaphash_migration_test.go | ||
| fsm.go | ||
| interface.go | ||
| log.go | ||
| loopin.go | ||
| loopin_test.go | ||
| manager.go | ||
| manager_test.go | ||
| selected_amount_migration.go | ||
| selected_amount_migration_test.go | ||
| sql_store.go | ||
| sql_store_test.go | ||