Skip to content

Commit a261564

Browse files
authored
Merge pull request #477 from lightninglabs/changeRevokedAtNumbers
session+litrpc: change RevokedAt tlv and proto number
2 parents 0653424 + 1f78f29 commit a261564

File tree

3 files changed

+71
-58
lines changed

3 files changed

+71
-58
lines changed

litrpc/lit-sessions.pb.go

Lines changed: 57 additions & 56 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

litrpc/lit-sessions.proto

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,16 @@ message Session {
9393

9494
string account_id = 13;
9595

96+
/*
97+
Field number 14 is reserved for future use.
98+
*/
99+
reserved 14;
100+
101+
/*
102+
Field number 15 is reserved for future use.
103+
*/
104+
reserved 15;
105+
96106
/*
97107
The unix timestamp indicating the time at which the session was revoked.
98108
Note that this field has not been around since the beginning and so it
@@ -101,7 +111,7 @@ message Session {
101111
readers should not assume that if this field is zero that the session is
102112
not revoked. Readers should instead first check the session_state field.
103113
*/
104-
uint64 revoked_at = 14 [jstype = JS_STRING];
114+
uint64 revoked_at = 16 [jstype = JS_STRING];
105115
}
106116

107117
message MacaroonRecipe {

session/tlv.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ const (
2525
typeRemotePublicKey tlv.Type = 11
2626
typeMacaroonRecipe tlv.Type = 12
2727
typeCreatedAt tlv.Type = 13
28-
typeRevokedAt tlv.Type = 14
28+
typeReservedNum1 tlv.Type = 14
29+
typeReservedNum2 tlv.Type = 15
30+
typeRevokedAt tlv.Type = 16
2931

3032
// typeMacaroon is no longer used, but we leave it defined for backwards
3133
// compatibility.

0 commit comments

Comments
 (0)