lnd.xprv/watchtower/wtclient
Conner Fromknecht 5ad9530502
watchtower/wtdb: return sorted ClientSession.CommittedUpdates
This commit replaces the map-based CommittedUpdates field with a slice.
When reading from disk, these will already be sorted by bbolt, so the
client restore the updates as presented without needing to sort them
first.

Since the key in the map variant was the sequence number, we refactor
the CommittedUpdate struct to have a sequence number and an embedded
CommittedUpdateBody (which is equivalent to the old CommittedUpdate).
The database is then expected to populate the sequence number from the
key on disk.

Since the sequence number is now directly integrated in the
CommittedUpdate struct, this allow allows us to remove the now redundant
seqNum argument from CommitUpdate.
2019-05-23 20:47:36 -07:00
..
backup_task_internal_test.go watchtower/wtclient/backup_task: bind to ClientSession instead of SessionInfo 2019-03-15 02:30:59 -07:00
backup_task.go watchtower/wtclient/backup_task: bind to ClientSession instead of SessionInfo 2019-03-15 02:30:59 -07:00
candidate_iterator.go watchtower/wtclient/tower_candidate_iterator: linked-list iterator 2019-03-15 02:31:24 -07:00
client_test.go watchtower/wtmock/tower_db: move mock tower db to wtmock pkg 2019-04-26 17:19:58 -07:00
client.go multi: fix spelling mistakes 2019-05-04 15:35:37 -07:00
derivation.go keychain/derivation: adds watchtower session key family 2019-04-23 20:03:48 -07:00
errors.go multi: fix spelling mistakes 2019-05-04 15:35:37 -07:00
interface.go watchtower/wtdb: return sorted ClientSession.CommittedUpdates 2019-05-23 20:47:36 -07:00
log.go watchtower/wtclient/log: adds wtclient logging 2019-03-15 02:30:35 -07:00
session_negotiator.go multi: fix spelling mistakes 2019-05-04 15:35:37 -07:00
session_queue.go watchtower/wtdb: return sorted ClientSession.CommittedUpdates 2019-05-23 20:47:36 -07:00
stats.go watchtower/wtclient/stats: adds clientStats 2019-03-15 02:32:15 -07:00
task_pipeline.go watchtower/wtclient/task_pipeline: add reliable task aggregator 2019-03-15 02:31:50 -07:00