lnd/watchtower/wtclient
Elle Mouton 204585c620
watchtower: demo StateUpdateCodeClientBehind error
In this commit, a test is added to demonstrate how clients can end up
getting the StateUpdateCodeClientBehind error from a tower server. This
can happen if a client ever deletes their db. If they do this then the
sessions they create with the tower will have the same IDs as the
sessions created in the now deleted db. This is because the session keys
(and thus session IDs) are calculated deterministically from a counter
(which is reset if the db is deleted). The tower server then throws this
error because the client would say that the sequence ID is 1 for the
next update.
2023-03-31 12:04:57 +02:00
..
addr_iterator.go wtclient: add clarifying comments to the AddressIterator 2023-03-30 14:46:56 +02:00
addr_iterator_test.go wtclient: make addr iterator panic safe 2023-03-30 12:29:41 +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/wtclient: upgrade pkg to use require 2022-10-19 18:49:17 +02:00
candidate_iterator.go wtclient: make addr iterator panic safe 2023-03-30 12:29:41 +02:00
candidate_iterator_test.go watchtower/wtclient: add Copy method to AddressIterator 2023-03-20 16:51:32 +02:00
client.go wtclient: fix info log line format 2023-03-20 20:14:01 +02:00
client_test.go watchtower: demo StateUpdateCodeClientBehind error 2023-03-31 12:04:57 +02:00
errors.go watchtower: add GetTower to tower iterator 2023-03-20 10:46:53 +02:00
interface.go watchtower: add PreEvaluateFilterFn callback 2023-03-20 20:14:01 +02:00
log.go watchtower/wtclient/log: adds wtclient logging 2019-03-15 02:30:35 -07:00
sess_close_min_heap.go watchtowers: add thread safe min-heap 2023-03-20 16:51:32 +02:00
sess_close_min_heap_test.go watchtowers: add thread safe min-heap 2023-03-20 16:51:32 +02:00
session_negotiator.go watchtower: allow removal during session negotiation 2022-10-20 15:46:56 +02:00
session_queue.go multi: improve readability of goroutine defers 2022-11-21 13:54:24 +01:00
stats.go multi: fix typos and grammar issues in comments [skip ci] 2022-10-17 09:40:22 +02:00
task_pipeline.go wtclient/task_pipeline: add prefix logging 2021-01-04 08:32:31 -08:00