rpcserver: add channels to GetNodeInfo response

This commit is contained in:
chokoboko committed 2019-05-23 16:03:39 +03:00
1 parent 6cd71b7f7a
commit 51dc422721
4 files changed
+531 -491

No files matched your search

+499 -487
View File
File diff suppressed because it is too large. Load diff
+6
View File
@@ -1735,8 +1735,14 @@ message NodeInfo {
*/
LightningNode node = 1 [json_name = "node"];
/// The total number of channels for the node.
uint32 num_channels = 2 [json_name = "num_channels"];
/// The sum of all channels capacity for the node, denominated in satoshis.
int64 total_capacity = 3 [json_name = "total_capacity"];
/// A list of all public channels for the node.
repeated ChannelEdge channels = 4 [json_name = "channels"];
}
/**
+11 -2
View File
@@ -2617,11 +2617,20 @@
},
"num_channels": {
"type": "integer",
"format": "int64"
"format": "int64",
"description": "/ The total number of channels for the node."
},
"total_capacity": {
"type": "string",
"format": "int64"
"format": "int64",
"description": "/ The sum of all channels capacity for the node, denominated in satoshis."
},
"channels": {
"type": "array",
"items": {
"$ref": "#/definitions/lnrpcChannelEdge"
},
"description": "/ A list of all public channels for the node."
}
}
},