lnd.xprv/watchtower/wtclient
Conner Fromknecht 9bd73c0a85
wtdb+wtclient: segregate session-key-index reservations by blob-type
This commit introduces a change in the key format used to reserve/lookup
session-key-indexes. Currently the reservations are stored under the
tower id, however this creates issues when multiple clients are using
the same database since only one reservation is permitted per tower.

We fix this by appending the blob type to the session-key-index locator.
This allows multiple clients to reserve keys for the same tower, but
still limits each client to one outstanding reservation. The changes are
made in a way such that we fall back to the legacy format if the a
reservation under the new format is not found, but only if the blob type
matches blob.TypeAltruistCommit, which is so far the only actively
deployed blob type.
2020-12-01 16:24:16 -08:00
..
backup_task_internal_test.go watchtower/wtclient: add anchor backup tasks 2020-11-25 15:05:17 -08:00
backup_task.go watchtower/wtclient: add anchor backup tasks 2020-11-25 15:05:17 -08:00
candidate_iterator_test.go watchtower/wtclient: extend TowerCandidateIterator to update candidates 2019-07-30 15:13:24 -07:00
candidate_iterator.go watchtower: prevent removal of last tower addr 2020-11-04 15:43:18 -08:00
client_test.go Merge pull request #4782 from cfromknecht/anchor-wtserver 2020-11-30 17:49:32 -08:00
client.go Merge pull request #4782 from cfromknecht/anchor-wtserver 2020-11-30 17:49:32 -08:00
errors.go multi: fix spelling mistakes 2019-05-04 15:35:37 -07:00
interface.go wtdb+wtclient: segregate session-key-index reservations by blob-type 2020-12-01 16:24:16 -08:00
log.go watchtower/wtclient/log: adds wtclient logging 2019-03-15 02:30:35 -07:00
session_negotiator.go wtdb+wtclient: segregate session-key-index reservations by blob-type 2020-12-01 16:24:16 -08:00
session_queue.go watchtower: use ECDH interface for watchtower session 2020-05-20 09:06:57 +02:00
stats.go watchtower/wtclient: extend TowerClient with CRUD operations for towers 2019-07-30 15:18:13 -07:00
task_pipeline.go watchtower/wtclient/task_pipeline: add reliable task aggregator 2019-03-15 02:31:50 -07:00