lnd.xprv/watchtower
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
..
blob multi: move Input interface and related code 2019-01-31 13:25:33 +01:00
lookout watchtower/wtmock/tower_db: move mock tower db to wtmock pkg 2019-04-26 17:19:58 -07:00
wtclient watchtower/wtdb: return sorted ClientSession.CommittedUpdates 2019-05-23 20:47:36 -07:00
wtdb watchtower/wtdb: return sorted ClientSession.CommittedUpdates 2019-05-23 20:47:36 -07:00
wtmock watchtower/wtdb: return sorted ClientSession.CommittedUpdates 2019-05-23 20:47:36 -07:00
wtpolicy multi: fix spelling mistakes 2019-05-04 15:35:37 -07:00
wtserver watchtower/wtserver/create_session: log missing error in create session 2019-04-26 17:22:02 -07:00
wtwire multi: fix spelling mistakes 2019-05-04 15:35:37 -07:00
conf_experimental.go watchtower/conf_experimental: adds CLI options in experimental builds 2019-01-14 19:42:34 -08:00
conf.go watchtower/conf: adds non-experimental empty Conf 2019-01-14 19:42:34 -08:00
config.go watchtower/multi: thread ChainHash to server 2019-02-08 20:02:17 -08:00
errors.go watchtower/errors: adds pkg level errors 2019-01-14 19:42:34 -08:00
interface.go watchtower/interface: adds composite DB iface 2019-01-14 19:42:33 -08:00
log.go watchtower/log: add WTWR subsystem logger 2019-01-14 19:42:33 -08:00
standalone.go watchtower/multi: thread ChainHash to server 2019-02-08 20:02:17 -08:00