Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Fixed Description Hash Issue on Opennode #56

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

ram0verflow
Copy link

LNURLP transactions currently do not work with opennode due to description hash error. I added a conditional check to pass description hash only if the funding source is not OpenNode

@@ -92,7 +92,7 @@ async def api_lnurl_callback(
wallet_id=link.wallet,
amount=int(amount / 1000),
memo=link.description,
unhashed_description=unhashed_description,
unhashed_description=None if get_funding_source().__class__.__name__ == "OpenNodeWallet" else unhashed_description,
Copy link
Collaborator

Choose a reason for hiding this comment

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

this is an ugly hack and a layering violation - maybe there is a better way how to fix the issue?

Copy link
Author

Choose a reason for hiding this comment

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

what about adding a member for each wallet class like is_deschash_required and checking it here ?

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.

2 participants