Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@vicariousdrama
Copy link
Contributor

@vicariousdrama vicariousdrama commented May 17, 2024

Similar resolution as #2513, but leaves in comments and applies description.

Tested with lnurlp extension locally with phoenixd 0.1.5-6845a31 in testnet, with assignment of unhashed_description or memo.

@vicariousdrama vicariousdrama changed the title [WIP] Support description for phoenixd Support description for phoenixd May 17, 2024
@vicariousdrama vicariousdrama changed the title Support description for phoenixd fix: phoenixd wallet description field supports lnurlp May 17, 2024
@Alex71btc
Copy link

I did a quick test, with this branch nostr zaps dont work, but with #2513 they work.

@Alex71btc Alex71btc mentioned this pull request May 18, 2024
@vicariousdrama
Copy link
Contributor Author

Yeah, its unclear to me why the pattern for the lnurlp extension is sending the metadata as description if that needs to be dropped on the floor and use the memo instead. There's likely breakage for lnurlp and nostr zaps across other funding sources for the same reason (opennode,zbd,...)

@vicariousdrama
Copy link
Contributor Author

Thanks @Funman2 for the check on nostr. I hadn't tried that but just put in the tweak needed to make it work by encoding the description field when it needs hashed.

@Alex71btc
Copy link

It works now with nostr.

@vicariousdrama vicariousdrama force-pushed the patch-1 branch 2 times, most recently from 85ea4a7 to def7f1d Compare May 21, 2024 21:27
@vicariousdrama
Copy link
Contributor Author

Rebased to dev, and squashed commits

@vicariousdrama vicariousdrama force-pushed the patch-1 branch 2 times, most recently from 5c6e86e to 5395fd1 Compare May 21, 2024 21:41
@vicariousdrama
Copy link
Contributor Author

Resolved what I could of linting issues, but there's still some disparity between len and Sized

@codecov
Copy link

codecov bot commented May 21, 2024

Codecov Report

Attention: Patch coverage is 70.00000% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 62.00%. Comparing base (5b056ce) to head (ea2aa69).
Report is 6 commits behind head on dev.

Files Patch % Lines
lnbits/wallets/phoenixd.py 70.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #2514      +/-   ##
==========================================
+ Coverage   61.79%   62.00%   +0.20%     
==========================================
  Files          69       69              
  Lines        9703     9737      +34     
==========================================
+ Hits         5996     6037      +41     
+ Misses       3707     3700       -7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@prusnak
Copy link
Collaborator

prusnak commented May 21, 2024

disparity between len and Sized

Where exactly? I don't see any CI failures now

@Hodladi
Copy link

Hodladi commented May 22, 2024

Thanks @Funman2 for the check on nostr. I hadn't tried that but just put in the tweak needed to make it work by encoding the description field when it needs hashed.

To me the nostr native zaps still not working...
I still get the long descripition with relays and alot of stuff and it fails the payment.

@dni dni force-pushed the dev branch 2 times, most recently from eb41f08 to 44b458e Compare May 22, 2024 09:15
vicariousdrama and others added 2 commits May 22, 2024 13:48
- Support description, restricted to 128 characters
- Support descriptionHash
@prusnak
Copy link
Collaborator

prusnak commented May 26, 2024

@dni this one is ready, plz review and merge

@motorina0 motorina0 self-requested a review May 29, 2024 09:20
@motorina0
Copy link
Collaborator

tACK

@motorina0 motorina0 merged commit 83b8985 into lnbits:dev May 29, 2024
motorina0 pushed a commit that referenced this pull request Jul 10, 2024
* Fix for phoenixd and lnurlp nostr usage

- Support description, restricted to 128 characters
- Support descriptionHash

Co-authored-by: Pavol Rusnak <[email protected]>
Co-authored-by: Vic <[email protected]>
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.

6 participants