Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.

LSPS2: Further client-side simplifications #100

Merged
merged 4 commits into from
Feb 5, 2024

Conversation

tnull
Copy link
Collaborator

@tnull tnull commented Feb 2, 2024

We previously simplified the client-side flow and reduced the amount of superfluous tracking in #88. However, this also removed an easy way for the client to clearly associate events with the previously made requests.

In this PR we go a step further and:

a) Return the request_id from request_opening_params, re-introducing the means to associate requests/events, without the need for additional tracking of user_channel_ids or similar.
b) Return the request_id from select_opening_params and use it to track the requests everywhere, allowing us to drop user_channel_id entirely. This doesn't only mean we don't have to keep track of it separately, but also that we don't have to expose an API that might be misused, requiring us to check and document the uniqueness properties of the identifiers.
c) Since we now ended up with essentially a single client side state, we drop the InboundChannelState tracking entirely.
d) We commit to not support 'LSP-trusts-client' mode any time soon and just remove it from the API.

tnull added 4 commits February 2, 2024 11:05
.. and expose it via the corresponding event. This allows the client to
track which previously-made request an event corresponds to.
.. and expose it via the corresponding event. This allows the client to
track which previously-made request an event corresponds to.

It also allows to drop our requirements and additional bookkeeping around `user_channel_id`.
.. since it's aruably not needed now that we more and more decouple the
fee-request and buy-request stages.
.. as it's implied and we won't support LSP-trusts-client anytime soon.
@tnull tnull merged commit bb902df into lightningdevkit:main Feb 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants