lnrpc+lncli: reorder getinfo and use printRespJSON

This commit is contained in:
Conner Fromknecht committed 2019-12-20 01:05:27 -08:00
1 parent 8f5d78c875
commit 153cd58c97
4 files changed
+694 -740

No files matched your search

+32 -32
View File
@@ -2453,6 +2453,10 @@
"lnrpcGetInfoResponse": {
"type": "object",
"properties": {
"version": {
"type": "string",
"description": "/ The version of the LND software that the node is running."
},
"identity_pubkey": {
"type": "string",
"description": "/ The identity pubkey of the current node."
@@ -2461,6 +2465,10 @@
"type": "string",
"title": "/ If applicable, the alias of the current node, e.g. \"bob\""
},
"color": {
"type": "string",
"title": "/ The color of the current node in hex code format"
},
"num_pending_channels": {
"type": "integer",
"format": "int64",
@@ -2471,6 +2479,11 @@
"format": "int64",
"title": "/ Number of active channels"
},
"num_inactive_channels": {
"type": "integer",
"format": "int64",
"title": "/ Number of inactive channels"
},
"num_peers": {
"type": "integer",
"format": "int64",
@@ -2485,36 +2498,25 @@
"type": "string",
"title": "/ The node's current view of the hash of the best block"
},
"synced_to_chain": {
"type": "boolean",
"format": "boolean",
"title": "/ Whether the wallet's view is synced to the main chain"
},
"testnet": {
"type": "boolean",
"format": "boolean",
"title": "* \nWhether the current node is connected to testnet. This field is \ndeprecated and the network field should be used instead"
},
"uris": {
"type": "array",
"items": {
"type": "string"
},
"description": "/ The URIs of the current node."
},
"best_header_timestamp": {
"type": "string",
"format": "int64",
"title": "/ Timestamp of the block best known to the wallet"
},
"version": {
"type": "string",
"description": "/ The version of the LND software that the node is running."
"synced_to_chain": {
"type": "boolean",
"format": "boolean",
"title": "/ Whether the wallet's view is synced to the main chain"
},
"num_inactive_channels": {
"type": "integer",
"format": "int64",
"title": "/ Number of inactive channels"
"synced_to_graph": {
"type": "boolean",
"format": "boolean",
"description": "Whether we consider ourselves synced with the public channel graph."
},
"testnet": {
"type": "boolean",
"format": "boolean",
"title": "* \nWhether the current node is connected to testnet. This field is \ndeprecated and the network field should be used instead"
},
"chains": {
"type": "array",
@@ -2523,14 +2525,12 @@
},
"title": "/ A list of active chains the node is connected to"
},
"color": {
"type": "string",
"title": "/ The color of the current node in hex code format"
},
"synced_to_graph": {
"type": "boolean",
"format": "boolean",
"description": "Whether we consider ourselves synced with the public channel graph."
"uris": {
"type": "array",
"items": {
"type": "string"
},
"description": "/ The URIs of the current node."
},
"features": {
"type": "object",