Skip to content

Conversation

@sputn1ck
Copy link
Member

This PR improves l402 handling for the notification stream. Prior an automatic 1sat payment was dispatched to fetch an l402 from the server. This logged unnecessary noise, when a node did not have sufficient outbound liquidity. We now check our local store
for an l402 and only continue with the stream if one token is found.

A new user will need to loop out or call the new fetchl402 cli command in order to receive notifications.

Copy link
Collaborator

@starius starius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🏆
Few comments

This commit changes the way we fetch the l402 tokens for the
notification stream. Instead of fetching them from the server and
paying an invoice, we now look into our local store for the token.
This means that a loop client will not autofetch a token.
@sputn1ck sputn1ck force-pushed the better_ntfn_stream_l402 branch from e475756 to b0301e4 Compare October 30, 2024 16:12
Copy link
Member

@bhandras bhandras left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🎉

@sputn1ck sputn1ck force-pushed the better_ntfn_stream_l402 branch from b0301e4 to 18b7573 Compare October 30, 2024 16:16
This commit adds the FetchL402 rpc to the client proto, which will allow
users to force fetching an L402 without doing a loop out or in.
This commit adds a new command to the loop cli tool that fetches the
a l402 token from the swap server.
@sputn1ck sputn1ck force-pushed the better_ntfn_stream_l402 branch from 18b7573 to 7ca5dc8 Compare October 30, 2024 16:18
@sputn1ck sputn1ck merged commit a544054 into lightninglabs:master Oct 30, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants