lnrpc: add median_channel_size to NetworkInfo

This commit is contained in:
Johan T. Halseth 2019-03-27 15:04:15 +01:00
parent 6860ad9ac6
commit f96dbd2377
No known key found for this signature in database
GPG Key ID: 15BAADA29DA20D26
3 changed files with 597 additions and 583 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1738,6 +1738,7 @@ message NetworkInfo {
double avg_channel_size = 7 [json_name = "avg_channel_size"];
int64 min_channel_size = 8 [json_name = "min_channel_size"];
int64 max_channel_size = 9 [json_name = "max_channel_size"];
int64 median_channel_size_sat = 10 [json_name = "median_channel_size_sat"];
// TODO(roasbeef): fee rate info, expiry
// * also additional RPC for tracking fee info once in

View File

@ -2400,6 +2400,10 @@
"max_channel_size": {
"type": "string",
"format": "int64"
},
"median_channel_size_sat": {
"type": "string",
"format": "int64"
}
}
},