2
0
mirror of https://github.com/lightninglabs/loop synced 2024-11-08 01:10:29 +00:00
loop/loopdb
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
..
sqlc sweepbatcher: fix spawning condition "unattached" spend notifiers 2024-07-11 13:15:39 +02:00
codec_test.go loopdb: add the local pubkey's keylocator to the persisted contract 2022-06-30 16:59:57 +02:00
codec.go loopdb: add the local pubkey's keylocator to the persisted contract 2022-06-30 16:59:57 +02:00
interface.go loopdb: add ability to track manual migrations 2024-06-03 14:54:18 +02:00
log.go multi: add persistent logger 2019-10-28 17:09:23 +01:00
loop.go loopdb: refactor the SwapContract to hold all HTLC keys 2023-03-20 20:08:43 +01:00
loopin.go loopdb: refactor the SwapContract to hold all HTLC keys 2023-03-20 20:08:43 +01:00
loopout.go loopdb: add migraton and DB code to handle payment timeout 2024-05-23 17:17:21 +02:00
meta.go multi: fix linter issues 2022-12-15 18:08:38 +01:00
migrate_test.go loopdb: add migrator 2023-06-20 18:59:31 +02:00
migrate.go multi: update linter, fix issues 2023-10-03 19:36:40 +02:00
migration_01_costs.go loopdb/loopout: add field SwapPublicationDeadline to LoopOutContract 2019-11-21 18:47:00 +01:00
migration_02_swap_publication_deadline.go loopdb/loopout: add field SwapPublicationDeadline to LoopOutContract 2019-11-21 18:47:00 +01:00
migration_03_last_hop.go loopdb: migrate loop in channel to last hop 2020-02-17 19:59:05 +01:00
migration_04_updates_test.go multi: use context in loopdb call 2023-06-19 12:28:32 +02:00
migration_04_updates.go loopdb: migrate to nested updates structure 2020-06-24 15:28:07 +02:00
migrations.go multi: update linter, fix issues 2023-10-03 19:36:40 +02:00
postgres_fixture.go loopdb: add postgres store 2023-06-20 18:59:30 +02:00
postgres.go loopdb: fix timestamp parsing 2023-08-08 15:20:00 +02:00
protocol_version_test.go protocol: set musig2 to be the stable version 2023-04-25 17:26:01 +02:00
protocol_version.go chore: fix some comments 2024-06-05 15:12:47 +08:00
raw_db_test.go multi: update linter, fix issues 2023-10-03 19:36:40 +02:00
schemas.go loopdb: create base sqlite store 2023-06-20 17:31:40 +02:00
sql_store.go loopdb: all BaseDB's methods use receiver name db 2024-06-20 11:58:46 -03:00
sql_test.go loopdb: add ability to track manual migrations 2024-06-03 14:54:18 +02:00
sqlerrors.go loopdb: create base sqlite store 2023-06-20 17:31:40 +02:00
sqlite.go loopdb: all BaseDB's methods use receiver name db 2024-06-20 11:58:46 -03:00
store_mock.go loop: add migration for loopout swaps to fix negative stored costs 2024-06-03 14:54:18 +02:00
store_test.go multi: update linter, fix issues 2023-10-03 19:36:40 +02:00
store.go loopdb: add ability to track manual migrations 2024-06-03 14:54:18 +02:00
swapstate.go loopd: new loopin state for incorrect amount sweeps 2024-02-13 15:03:03 +01:00
test_postgres.go loopdb: fix faulty timestamps on startup 2023-08-07 21:04:30 +02:00
test_sqlite.go loopdb: fix faulty timestamps on startup 2023-08-07 21:04:30 +02:00
typed_store.go multi: typed callback in ExecTx 2024-06-19 10:38:55 -03:00