rpcserver: add channels to GetNodeInfo response
This commit is contained in:
1 parent
6cd71b7f7a
commit
51dc422721
4 files changed
+531
-491
No files matched your search
+499
-487
File diff suppressed because it is too large.
Load diff
@@ -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
@@ -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."
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user