lnd/watchtower/wtclient
Elle Mouton 3d201dde50
wtclient: ensure correct disk mode for overflow queue
Before this commit, in the watchtower client's DiskOverflowQueue, there
could be a situation _if no consumer was reading from the queue_ that
could lead to an in-memory build up of backup tasks instead of the
expected disk overflow. This commit fixes this by ensuring that if a
task is read from disk, then the mode is set to disk mode to ensure that
any new items are persisted to disk in this scenario.
The unit tests added in the previous commit is updated here in order to
show that the fix does in-fact fix the test.
2024-01-15 17:28:17 +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: convert JusticeKit to interface 2024-01-04 14:37:42 +02:00
backup_task_internal_test.go watchtower: convert JusticeKit to interface 2024-01-04 14:37:42 +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: use the new filter options to fix the demo'd bug 2024-01-12 08:25:28 +02:00
client_test.go wtclient: use the new filter options to fix the demo'd bug 2024-01-12 08:25:28 +02:00
errors.go wtclient: spin session key indices if required 2023-03-31 12:05:58 +02:00
fuzz_test.go wtclient: AddressIterator fuzz test 2023-06-01 08:46:45 -05:00
interface.go watchtower: start using the new channel max heights 2023-11-27 20:01:17 +02:00
log.go watchtower/wtclient/log: adds wtclient logging 2019-03-15 02:30:35 -07:00
manager.go wtclient+server: unexport and rename TowerClient 2023-11-28 11:01:51 +02:00
queue.go wtclient: ensure correct disk mode for overflow queue 2024-01-15 17:28:17 +02:00
queue_test.go wtclient: ensure correct disk mode for overflow queue 2024-01-15 17:28:17 +02: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 trivial: Fix spelling errors 2023-09-21 22:35:33 -04:00
session_queue.go wtclient+server: unexport and rename TowerClient 2023-11-28 11:01:51 +02:00
stats.go lnrpc+wtclient: refactor ClientStats 2023-11-28 09:54:02 +02:00