lnd.xprv/watchtower
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
..
blob wathtower/blob+wtserver: support anchor sessions 2020-11-25 15:04:00 -08:00
lookout watchtower/lookout: use correct to-local-penalty size for anchors 2020-09-15 12:48:23 -04:00
wtclient wtdb+wtclient: segregate session-key-index reservations by blob-type 2020-12-01 16:24:16 -08:00
wtdb wtdb+wtclient: segregate session-key-index reservations by blob-type 2020-12-01 16:24:16 -08:00
wtmock wtdb+wtclient: segregate session-key-index reservations by blob-type 2020-12-01 16:24:16 -08:00
wtpolicy watchtower/wtpolicy: add IsAnchorChannel helper 2020-11-25 15:04:23 -08:00
wtserver wathtower/blob+wtserver: support anchor sessions 2020-11-25 15:04:00 -08:00
wtwire watchtower/wtwire: add AnchorCommit feature bits 2020-11-25 15:03:49 -08:00
conf.go watchtower: add externalip CLI configuration 2019-06-20 17:04:03 -07:00
config.go watchtower: use ECDH interface for watchtower session 2020-05-20 09:06:57 +02:00
errors.go watchtower/conf: remove experimental conditional compilation 2019-06-13 19:54:19 -07:00
interface.go watchtower/conf: abstract address normalizer to prevent import cycle 2019-06-13 19:54:19 -07:00
log.go watchtower: remove dead logging code 2020-04-24 19:15:08 +02:00
standalone.go watchtower: use ECDH interface for watchtower session 2020-05-20 09:06:57 +02:00