lnd/watchtower
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
..
blob multi: fix make fmt 2022-08-23 22:10:24 +08:00
lookout watchtower: uses P2TR for sweep, delivery, and reward addresses 2022-08-11 17:26:13 -07:00
wtclient watchtower: use more efficient session query on startup 2022-10-13 11:30:27 +02:00
wtdb watchtower: make use of the new tower-to-session index 2022-10-13 11:30:27 +02:00
wtmock watchtower: always populate Tower in ClientSession 2022-10-13 11:30:27 +02:00
wtpolicy watchtower: uses P2TR for sweep, delivery, and reward addresses 2022-08-11 17:26:13 -07:00
wtserver multi: fix make fmt 2022-08-23 22:10:24 +08:00
wtwire docs: fix typo in watchtower document and code comment [skip ci] 2022-09-13 22:06:30 +09:00
conf.go watchtower: add externalip CLI configuration 2019-06-20 17:04:03 -07:00
config.go multi: Add --tor.encryptkey flag functionality to encrypt the Tor private key on disk 2022-09-30 01:53:46 -05:00
errors.go watchtower/conf: remove experimental conditional compilation 2019-06-13 19:54:19 -07:00
interface.go watchtower/conf: abstract address normalizer to prevent import cycle 2019-06-13 19:54:19 -07:00
log.go watchtower: remove dead logging code 2020-04-24 19:15:08 +02:00
standalone.go multi: Add --tor.encryptkey flag functionality to encrypt the Tor private key on disk 2022-09-30 01:53:46 -05:00
tlv_bench_test.go tlv+watchtower: move bench test 2022-02-21 13:48:31 +01:00