mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-11-10 22:27:22 +01:00
watchtower/wtdb/session_state_update: adds session state
This commit is contained in:
committed by
Conner Fromknecht
parent
405838d29c
commit
8b47a96459
23
watchtower/wtdb/session_state_update.go
Normal file
23
watchtower/wtdb/session_state_update.go
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
package wtdb
|
||||||
|
|
||||||
|
// SessionStateUpdate holds a state update sent by a client along with its
|
||||||
|
// SessionID.
|
||||||
|
type SessionStateUpdate struct {
|
||||||
|
// ID the session id of the client who sent the state update.
|
||||||
|
ID SessionID
|
||||||
|
|
||||||
|
// SeqNum the sequence number of the update within the session.
|
||||||
|
SeqNum uint16
|
||||||
|
|
||||||
|
// LastApplied the highest index that client has acknowledged is
|
||||||
|
// committed
|
||||||
|
LastApplied uint16
|
||||||
|
|
||||||
|
// Hint is the 16-byte prefix of the revoked commitment transaction.
|
||||||
|
Hint BreachHint
|
||||||
|
|
||||||
|
// EncryptedBlob is a ciphertext containing the sweep information for
|
||||||
|
// exacting justice if the commitment transaction matching the breach
|
||||||
|
// hint is braodcast.
|
||||||
|
EncryptedBlob []byte
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user