Skip to content

Commit 786eca5

Browse files
committed
lnrpc: deprecate FlapCount, LastFlapNs and Uptime
1 parent d7558d3 commit 786eca5

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

lnrpc/lightning.pb.go

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

lnrpc/lightning.proto

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1583,6 +1583,7 @@ message Channel {
15831583
int64 lifetime = 23;
15841584

15851585
/*
1586+
Deprecated. This field is no longer used and will always be zero.
15861587
The number of seconds that the remote peer has been observed as being online
15871588
by the channel scoring system over the lifetime of the channel
15881589
[EXPERIMENTAL].
@@ -1919,6 +1920,7 @@ message Peer {
19191920
repeated TimestampedError errors = 12;
19201921

19211922
/*
1923+
Deprecated. This field is no longer used and will always be zero.
19221924
The number of times we have recorded this peer going offline or coming
19231925
online, recorded across restarts. Note that this value is decreased over
19241926
time if the peer has not recently flapped, so that we can forgive peers
@@ -1927,6 +1929,7 @@ message Peer {
19271929
int32 flap_count = 13;
19281930

19291931
/*
1932+
Deprecated. This field is no longer used and will always be zero.
19301933
The timestamp of the last flap we observed for this peer. If this value is
19311934
zero, we have not observed any flaps for this peer.
19321935
*/

lnrpc/lightning.swagger.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3996,7 +3996,7 @@
39963996
"uptime": {
39973997
"type": "string",
39983998
"format": "int64",
3999-
"description": "The number of seconds that the remote peer has been observed as being online\nby the channel scoring system over the lifetime of the channel\n[EXPERIMENTAL]."
3999+
"description": "Deprecated. This field is no longer used and will always be zero.\nThe number of seconds that the remote peer has been observed as being online\nby the channel scoring system over the lifetime of the channel\n[EXPERIMENTAL]."
40004000
},
40014001
"close_address": {
40024002
"type": "string",
@@ -6916,12 +6916,12 @@
69166916
"flap_count": {
69176917
"type": "integer",
69186918
"format": "int32",
6919-
"description": "The number of times we have recorded this peer going offline or coming\nonline, recorded across restarts. Note that this value is decreased over\ntime if the peer has not recently flapped, so that we can forgive peers\nwith historically high flap counts."
6919+
"description": "Deprecated. This field is no longer used and will always be zero.\nThe number of times we have recorded this peer going offline or coming\nonline, recorded across restarts. Note that this value is decreased over\ntime if the peer has not recently flapped, so that we can forgive peers\nwith historically high flap counts."
69206920
},
69216921
"last_flap_ns": {
69226922
"type": "string",
69236923
"format": "int64",
6924-
"description": "The timestamp of the last flap we observed for this peer. If this value is\nzero, we have not observed any flaps for this peer."
6924+
"description": "Deprecated. This field is no longer used and will always be zero.\nThe timestamp of the last flap we observed for this peer. If this value is\nzero, we have not observed any flaps for this peer."
69256925
},
69266926
"last_ping_payload": {
69276927
"type": "string",

0 commit comments

Comments
 (0)