Skip to content

Add lnurl fallback support to sender vasp #151

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 4 commits into from
Feb 8, 2024

Conversation

shreyav
Copy link
Contributor

@shreyav shreyav commented Feb 8, 2024

towards LIG-4111

@shreyav shreyav requested a review from jklein24 February 8, 2024 18:48
val lnurlpResponse = try {
response.body<NonUmaLnurlpResponse>()
} catch (e: Exception) {
call.application.environment.log.error("Failed to parse as non UMA lnurlp response\n${response.bodyAsText()}", e)
Copy link
Contributor

Choose a reason for hiding this comment

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

At this point, we've failed to parse as both uma and non-uma. Maybe we should log that in the response? Might also be good to log the uma parsing error above for debugging purposes.


val newCallbackId = requestDataCache.savePayReqData(
encodedInvoice = payReqResponse.pr,
utxoCallback = getUtxoCallback(call, "1234abc"),
Copy link
Contributor

Choose a reason for hiding this comment

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

This utxo callback should actually always be empty in the case of non-uma lnurl.

@shreyav shreyav merged commit 9dd1184 into develop Feb 8, 2024
@shreyav shreyav deleted the feat/fallback-lnurlp-sender branch February 8, 2024 21:33
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants