mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
Wait for the server's static loop-in risk-accepted notification before starting the client payment deadline. The server may intentionally hold the swap at the confirmation-risk gate after HTLC signing, and the client deadline should not run while that server-side wait is still in progress. Cache risk-accepted notifications by swap hash inside the local notification manager and replay them to the per-swap subscriber. This covers both reconnects and the internal race where the global notification stream receives the server event before the static loop-in FSM registers its waiter. |
||
|---|---|---|
| .. | ||
| 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 | ||
| txout_checker.go | ||