rpc: add zero-conf, alias information to {list,closed}channels

This commit is contained in:
eugene committed 2022-08-09 14:09:41 -04:00
1 parent 012c0d96f5
commit 48f270fe20
4 files changed
+2414 -2250

No files matched your search

+2311 -2249
View File
File diff suppressed because it is too large. Load diff
+21
View File
@@ -1482,6 +1482,18 @@ message Channel {
// List constraints for the remote node.
ChannelConstraints remote_constraints = 30;
/*
This lists out the set of alias short channel ids that exist for a channel.
This may be empty.
*/
repeated uint64 alias_scids = 31;
// Whether or not this is a zero-conf channel.
bool zero_conf = 32;
// This is the confirmed / on-chain zero-conf SCID.
uint64 zero_conf_confirmed_scid = 33;
}
message ListChannelsRequest {
@@ -1565,6 +1577,15 @@ message ChannelCloseSummary {
Initiator close_initiator = 12;
repeated Resolution resolutions = 13;
/*
This lists out the set of alias short channel ids that existed for the
closed channel. This may be empty.
*/
repeated uint64 alias_scids = 14;
// The confirmed SCID for a zero-conf channel.
uint64 zero_conf_confirmed_scid = 15 [jstype = JS_STRING];
}
enum ResolutionType {
+30
View File
@@ -3291,6 +3291,23 @@
"remote_constraints": {
"$ref": "#/definitions/lnrpcChannelConstraints",
"description": "List constraints for the remote node."
},
"alias_scids": {
"type": "array",
"items": {
"type": "string",
"format": "uint64"
},
"description": "This lists out the set of alias short channel ids that exist for a channel.\nThis may be empty."
},
"zero_conf": {
"type": "boolean",
"description": "Whether or not this is a zero-conf channel."
},
"zero_conf_confirmed_scid": {
"type": "string",
"format": "uint64",
"description": "This is the confirmed / on-chain zero-conf SCID."
}
}
},
@@ -3550,6 +3567,19 @@
"items": {
"$ref": "#/definitions/lnrpcResolution"
}
},
"alias_scids": {
"type": "array",
"items": {
"type": "string",
"format": "uint64"
},
"description": "This lists out the set of alias short channel ids that existed for the\nclosed channel. This may be empty."
},
"zero_conf_confirmed_scid": {
"type": "string",
"format": "uint64",
"description": "The confirmed SCID for a zero-conf channel."
}
}
},