Skip to content

Commit c202d35

Browse files
committed
Correct idempotency key docs on LSPS2ServiceEvent::OpenChannel
While it would be correct to use `(their_network_key, intercept_scid)` as the idempotency key when handling `LSPS2ServiceEvent::OpenChannel`, we don't actually expect anyone to do so as it would require separate storage to track the `intercept_scid` -> opened channel mappings. Thus, we update the documentation to note that the correct idempotency key is `(their_network_key, user_channel_id)`.
1 parent e929517 commit c202d35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning-liquidity/src/lsps2/event.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ pub enum LSPS2ServiceEvent {
163163
///
164164
/// **Note: ** As this event is persisted and might get replayed after restart, you'll need to
165165
/// ensure channel creation idempotency. I.e., please check if you already created a
166-
/// corresponding channel based on the given `their_network_key` and `intercept_scid` and
166+
/// corresponding channel based on the given `their_network_key` and `user_channel_id` and
167167
/// ignore this event in case you did.
168168
///
169169
/// [`ChannelManager::create_channel`]: lightning::ln::channelmanager::ChannelManager::create_channel

0 commit comments

Comments
 (0)