lnd/watchtower/wtclient
Elle Mouton f889c9b1cc
watchtower: use bbolt db instead of mock DB for client tests
The watchtower client test framework currently uses a mock version of
the tower client DB. This can lead to bugs if the mock DB works slightly
differently to the actual bbolt DB. So this commit ensures that we only
use the bbolt db for the tower client tests. We also increment the
`waitTime` used in the tests a bit to account for the slightly longer DB
read and write times. Doing this switch resulted in one bug being
caught: we were not removing sessions from the in-memory set on deletion
of the session and so that is fixed here too.
2023-09-13 12:13:22 +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 lnwire: update Sig to support both ECDSA and schnorr sigs 2023-08-22 16:29:19 -07:00
backup_task_internal_test.go lnwire: update Sig to support both ECDSA and schnorr sigs 2023-08-22 16:29:19 -07: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 watchtower: use bbolt db instead of mock DB for client tests 2023-09-13 12:13:22 +02:00
client_test.go watchtower: use bbolt db instead of mock DB for client tests 2023-09-13 12:13:22 +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: add DeleteCommittedUpdate DB method 2023-07-18 16:28:27 +02:00
log.go watchtower/wtclient/log: adds wtclient logging 2019-03-15 02:30:35 -07:00
queue.go multi: update linter, fix new issues 2023-06-13 11:58:33 +02:00
queue_test.go watchtower/wtclient: generic disk overflow queue 2023-05-16 10:57:50 +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 wtclient: spin session key indices if required 2023-03-31 12:05:58 +02:00
session_queue.go wtclient: replay un-acked updates onto pipeline 2023-07-18 16:28:27 +02:00
stats.go multi: fix typos and grammar issues in comments [skip ci] 2022-10-17 09:40:22 +02:00