lnd.xprv/watchtower/wtdb
Conner Fromknecht 28bf49807e
watchtower/wtdb: add CSessionStatus field to ClientSession
This commit adds persisted status bit-field to ClientSessions, that can
be used to modify behavior of their handling in the client. Currently,
only a default CSessionActive status is defined. However, the intention
is that this could later be used to signal that a session is abandoned
without needing to perform a db migration to add the field. As we move
forward with testing, this will likely be useful if a session gets
borked and we need a simple method of the client to temporarily ignore
certain sessions.

The field may be useful in signaling other types of status changes,
though this was the primary motivation that warranted the addition.
2019-05-24 18:24:41 -07:00
..
breach_hint.go watchtower/wtdb/breach_hint: adds BreachHint, txid prefix 2018-10-24 20:18:17 -07:00
client_chan_summary.go watchtower/wtdb: add ClientDB 2019-05-24 18:24:41 -07:00
client_db_test.go watchtower/wtdb: add ClientDB 2019-05-24 18:24:41 -07:00
client_db.go watchtower/wtdb: add ClientDB 2019-05-24 18:24:41 -07:00
client_session.go watchtower/wtdb: add CSessionStatus field to ClientSession 2019-05-24 18:24:41 -07:00
codec_test.go watchtower/wtdb/client_chan_summary: add ClientChanSummary 2019-05-23 20:48:36 -07:00
codec.go watchtower/wtdb/codec: import channeldb code for extension 2019-04-26 17:20:36 -07:00
db_common.go watchtower/wtdb: prepare for addition of client db 2019-05-23 20:47:08 -07:00
log.go watchtower/wtdb/log: add WTDB logs 2019-04-26 17:21:20 -07:00
session_id.go watchtower/wtdb/session_id: adds SessoinID, client pubkey 2018-10-24 20:18:21 -07:00
session_info.go watchtower/wtdb: add encode/decode to session info + updates 2019-04-26 17:20:52 -07:00
session_state_update.go multi: fix spelling mistakes 2019-05-04 15:35:37 -07:00
tower_db_test.go watchtower/wtdb/tower_db_test: add mock+bolt iface tests 2019-04-26 17:21:48 -07:00
tower_db.go watchtower/wtdb: prepare for addition of client db 2019-05-23 20:47:08 -07:00
tower.go watchtower/wtdb: add ClientDB 2019-05-24 18:24:41 -07:00
version.go watchtower/wtdb: add ClientDB 2019-05-24 18:24:41 -07:00