2
0
mirror of https://github.com/lightninglabs/loop synced 2024-11-08 01:10:29 +00:00
loop/loopdb/sqlc
Andras Banki-Horvath 6a4ef3683a
sweepbatcher: fix spawning condition "unattached" spend notifiers
Previously, when handling a sweep we assumed that if a sweep status
was completed, the parent batch was also finished. However, since the
batch confirmation status depends on three on-chain confirmations, it
is possible that a spend notifier was started for a sweep of an active
batch. The notifier would fetch the parent batch from the database, but
because we incorrectly assumed that  the parent was confirmed (when it
was not), the DB call would fail with a 'no rows returned' error.
This failure would cause the sweep to fail and the sweep batcher to
stop, resulting in a permanent failure state.
2024-07-11 13:15:39 +02:00
..
migrations loopdb: add ability to track manual migrations 2024-06-03 14:54:18 +02:00
queries sweepbatcher: fix spawning condition "unattached" spend notifiers 2024-07-11 13:15:39 +02:00
batch.sql.go sweepbatcher: fix spawning condition "unattached" spend notifiers 2024-07-11 13:15:39 +02: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 loopdb: add ability to track manual migrations 2024-06-03 14:54:18 +02:00
querier.go Merge pull request #764 from bhandras/costs-cleanup-migration 2024-06-03 16:04:30 +02:00
reservations.sql.go loopdb: bump sqlc to 1.25.0 2024-03-20 13:57:11 +01:00
swaps.sql.go Merge pull request #764 from bhandras/costs-cleanup-migration 2024-06-03 16:04:30 +02:00