lnd/watchtower/wtclient
Elle Mouton 105c44df9b
watchtower: use more efficient session query on startup
In this commit, the functions used to fetch candidate sessions and
towers on creation of the watchtower Client are changed to make use of
the more efficient lookup functions. Previously, all sessions were
listed from the DB and then these were used to collect the active
towers which in certain situations lead to some users getting the
"tower not found" error on start up. With this commit, we instead first
list all Towers in the DB and then we fetch the sessions for each of
those towers.
2022-10-13 11:30:27 +02:00
..
backup_task.go watchtower: uses P2TR for sweep, delivery, and reward addresses 2022-08-11 17:26:13 -07:00
backup_task_internal_test.go watchtower: uses P2TR for sweep, delivery, and reward addresses 2022-08-11 17:26:13 -07:00
candidate_iterator.go watchtower: prevent removal of last tower addr 2020-11-04 15:43:18 -08:00
candidate_iterator_test.go multi: move many t.Fatalf calls to require.NoError 2022-06-17 04:26:55 +00:00
client.go watchtower: use more efficient session query on startup 2022-10-13 11:30:27 +02:00
client_test.go watchtower: uses P2TR for sweep, delivery, and reward addresses 2022-08-11 17:26:13 -07:00
errors.go multi: fix spelling mistakes 2019-05-04 15:35:37 -07:00
interface.go watchtower: fix formatting 2022-10-13 11:30:22 +02:00
log.go watchtower/wtclient/log: adds wtclient logging 2019-03-15 02:30:35 -07:00
session_negotiator.go multi: Fix typos [skip ci] 2022-01-24 12:19:02 +02:00
session_queue.go wtclient/seseion_queue: add prefix logging 2021-01-04 08:32:34 -08:00
stats.go wtclient: decrement pending tasks stats upon accepted task 2021-04-14 17:18:25 -07:00
task_pipeline.go wtclient/task_pipeline: add prefix logging 2021-01-04 08:32:31 -08:00