lnrpc: add oneof funding txid to ChannelPoint

This commit allows us to get/set the funding txid of a ChannelPoint
either as raw bytes or a string.
This commit is contained in:
Wilmer Paulino committed 2018-01-27 21:59:54 -05:00
1 parent 3b4ffbca48
commit 2cfd705a06
4 files changed
+423 -334

No files matched your search

+3 -3
View File
@@ -145,7 +145,7 @@
]
}
},
"/v1/channels/{channel_point.funding_txid}/{channel_point.output_index}": {
"/v1/channels/{channel_point.funding_txid_bytes}/{channel_point.output_index}": {
"delete": {
"summary": "* lncli: `closechannel`\nCloseChannel attempts to close an active channel identified by its channel\noutpoint (ChannelPoint). The actions of this method can additionally be\naugmented to attempt a force close after a timeout period in the case of an\ninactive peer. If a non-force close (cooperative closure) is requested,\nthen the user can specify either a target number of blocks until the\nclosure transaction is confirmed, or a manual fee rate. If neither are\nspecified, then a default lax, block confirmation target is used.",
"operationId": "CloseChannel",
@@ -159,7 +159,7 @@
},
"parameters": [
{
"name": "channel_point.funding_txid",
"name": "channel_point.funding_txid_bytes",
"in": "path",
"required": true,
"type": "string",
@@ -1037,7 +1037,7 @@
"lnrpcChannelPoint": {
"type": "object",
"properties": {
"funding_txid": {
"funding_txid_bytes": {
"type": "string",
"format": "byte",
"title": "/ Txid of the funding transaction"