Skip to content

Commit 64e06fa

Browse files
committed
Add proto for CloseChannel
1 parent 742ae60 commit 64e06fa

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

protos/src/proto/ldk_node_server.proto

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,3 +218,23 @@ message ChannelConfig {
218218
uint64 fee_rate_multiplier = 7;
219219
}
220220
}
221+
222+
// Closes the channel specified by given request.
223+
// See more:
224+
// - https://docs.rs/ldk-node/latest/ldk_node/struct.Node.html#method.close_channel
225+
// - https://docs.rs/ldk-node/latest/ldk_node/struct.Node.html#method.force_close_channel
226+
message CloseChannelRequest {
227+
228+
// The channel id of the created channel that user can use to refer to channel.
229+
bytes user_channel_id = 1;
230+
231+
// The hex-encoded public key of the node to close a channel with.
232+
string counterparty_node_id = 2;
233+
234+
// Whether to force close the specified channel.
235+
optional bool force_close = 3;
236+
}
237+
238+
message CloseChannelResponse {
239+
240+
}

0 commit comments

Comments
 (0)