rpc: Add PendingOpenChannel to SubscribeChannelEvents

This commit adds PendingOpenChannel to SubscribeChannelEvents stream in
the gRPC API.
This is useful for keeping track of channel openings that Autopilot does.
It can also be used for the non-initator side of a channel opening to keep
track of channel openings.
This commit is contained in:
Hampus Sjöberg committed 2020-01-24 13:48:18 +01:00
1 parent 51d8c11eb5
commit 227e66c469
9 files changed
+720 -644

No files matched your search

+642 -623
View File
File diff suppressed because it is too large. Load diff
+2
View File
@@ -1930,6 +1930,7 @@ message ChannelEventUpdate {
ChannelCloseSummary closed_channel = 2 [ json_name = "closed_channel" ];
ChannelPoint active_channel = 3 [ json_name = "active_channel" ];
ChannelPoint inactive_channel = 4 [ json_name = "inactive_channel" ];
PendingUpdate pending_open_channel = 6 [json_name = "pending_open_channel"];
}
enum UpdateType {
@@ -1937,6 +1938,7 @@ message ChannelEventUpdate {
CLOSED_CHANNEL = 1;
ACTIVE_CHANNEL = 2;
INACTIVE_CHANNEL = 3;
PENDING_OPEN_CHANNEL = 4;
}
UpdateType type = 5 [ json_name = "type" ];
+5 -1
View File
@@ -1467,7 +1467,8 @@
"OPEN_CHANNEL",
"CLOSED_CHANNEL",
"ACTIVE_CHANNEL",
"INACTIVE_CHANNEL"
"INACTIVE_CHANNEL",
"PENDING_OPEN_CHANNEL"
],
"default": "OPEN_CHANNEL"
},
@@ -2149,6 +2150,9 @@
"inactive_channel": {
"$ref": "#/definitions/lnrpcChannelPoint"
},
"pending_open_channel": {
"$ref": "#/definitions/lnrpcPendingUpdate"
},
"type": {
"$ref": "#/definitions/ChannelEventUpdateUpdateType"
}