loop/loopdb
Andras Banki-Horvath f40ef193e9
loop: add migration for loopout swaps to fix negative stored costs
Previously we may have stored negative costs for some loop out swaps
which this commit attempts to correct by fetching all completed swap,
calculating the correct costs and overriding them in the database.
2024-06-03 14:54:18 +02:00
..
sqlc loopdb: add ability to track manual migrations 2024-06-03 14:54:18 +02:00
codec.go loopdb: add the local pubkey's keylocator to the persisted contract 2022-06-30 16:59:57 +02:00
codec_test.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.go multi: update linter, fix issues 2023-10-03 19:36:40 +02:00
migrate_test.go loopdb: add migrator 2023-06-20 18:59:31 +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.go loopdb: migrate to nested updates structure 2020-06-24 15:28:07 +02:00
migration_04_updates_test.go multi: use context in loopdb call 2023-06-19 12:28:32 +02:00
migrations.go multi: update linter, fix issues 2023-10-03 19:36:40 +02:00
postgres.go loopdb: fix timestamp parsing 2023-08-08 15:20:00 +02:00
postgres_fixture.go loopdb: add postgres store 2023-06-20 18:59:30 +02:00
protocol_version.go protocol: set musig2 to be the stable version 2023-04-25 17:26:01 +02:00
protocol_version_test.go protocol: set musig2 to be the stable version 2023-04-25 17:26:01 +02: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: add ability to track manual migrations 2024-06-03 14:54:18 +02: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 multi: apply make fmt 2024-04-23 15:18:15 -03:00
store.go loopdb: add ability to track manual migrations 2024-06-03 14:54:18 +02: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
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