lnd/watchtower/wtclient
Elle Mouton 3ff5abc9e3
watchtower: allow removal during session negotiation
In this commit, the bug demonstrated in the previous commit is fixed.
The locking capabilities of the AddressIterator are used to lock
addresses if they are being used for session negotiation. So now, when a
request comes through to remove a tower address then a check is first
done to ensure that the address is not currently in use. If it is not,
then the request can go through.
2022-10-20 15:46:56 +02:00
..
addr_iterator.go watchtower: add AddressIterator and tests 2022-10-20 15:46:03 +02:00
addr_iterator_test.go watchtower: add AddressIterator and tests 2022-10-20 15:46:03 +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 watchtower: allow removal during session negotiation 2022-10-20 15:46:56 +02:00
candidate_iterator_test.go watchtower: make use of the new AddressIterator 2022-10-20 15:46:52 +02:00
client.go watchtower: allow removal during session negotiation 2022-10-20 15:46:56 +02:00
client_test.go watchtower: allow removal during session negotiation 2022-10-20 15:46:56 +02:00
errors.go watchtower: make use of the new AddressIterator 2022-10-20 15:46:52 +02:00
interface.go watchtower: make use of the new AddressIterator 2022-10-20 15:46:52 +02:00
log.go watchtower/wtclient/log: adds wtclient logging 2019-03-15 02:30:35 -07:00
session_negotiator.go watchtower: allow removal during session negotiation 2022-10-20 15:46:56 +02:00
session_queue.go watchtower: make use of the new AddressIterator 2022-10-20 15:46:52 +02: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