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

Mega-merge 3: CLN update client lib with descriptionhash support #792

Merged
merged 71 commits into from Aug 1, 2022

Conversation

callebtc
Copy link
Collaborator

@callebtc callebtc commented Jul 27, 2022

Since v0.11.1, CLN supports generating invoices with deschashonly enabling native support for LNURL.

  • Suppport for invoices with desciption_hash without invoicewithdescriptionhash plugin
  • Wallet returns payment_hash as checking_id instead of label
  • We also assume that the checking_id is payment_hash for checking an invoice status.
  • Transition from pylightning to pyln-client
  • CLightningWallet renamed to CoreLightningWallet (keep support for old name / .env files)
  • CLIGHTNING_RPC renamed to CORELIGHTNING_RPC (keep support for old name / .env files)
  • Rename clightning.py to cln.py
  • More general invoice stream error handling

Testing: All tests in the PR should pass.

@callebtc callebtc added bug Something isn't working enhancement Make something better labels Jul 27, 2022
@callebtc callebtc changed the title WIP: CLN update client lib with descriptionhash support CLN update client lib with descriptionhash support Jul 27, 2022
@callebtc callebtc added wallets Funding sources and removed bug Something isn't working labels Jul 27, 2022
@codecov-commenter
Copy link

codecov-commenter commented Jul 27, 2022

Codecov Report

Merging #792 (b76231f) into main (f1ec7e3) will increase coverage by 0.12%.
The diff coverage is 36.66%.

@@            Coverage Diff             @@
##             main     #792      +/-   ##
==========================================
+ Coverage   41.72%   41.85%   +0.12%     
==========================================
  Files         216      216              
  Lines       11372    11373       +1     
==========================================
+ Hits         4745     4760      +15     
+ Misses       6627     6613      -14     
Impacted Files Coverage Δ
lnbits/wallets/cln.py 36.73% <32.14%> (ø)
lnbits/wallets/__init__.py 100.00% <100.00%> (ø)

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

MatthewCroughan and others added 18 commits July 28, 2022 10:48
This adds a wrapper around uvicorn using Python. This is so the
entrypoint lnbits.server can be called on the command line, and passed
arguments like port and host. This makes lnbits feel more like a real
CLI application, and lends well to running as a service in systemd
This commit is not exhaustive, and it is a trend in this codebase to not
use StaticFiles() and instead use relative paths. This means the code
cannot run anywhere other than the source code directory, as it will not
find the files it is looking for
This causes lnbits.nixosModules.default to exist, rather than
lnbits.nixosModules.aarch64-linux.default. The latter was a mistake.
* fix older tpos without tips

* bad math requesting invoice

* make format
Fixed issue scanning tickets by adding "ticket://" prefix
@callebtc callebtc changed the title WIP: CLN update client lib with descriptionhash support Mega-merge 3: CLN update client lib with descriptionhash support (WIP) Jul 31, 2022
@callebtc callebtc merged commit 9c19b61 into main Aug 1, 2022
@callebtc callebtc deleted the wallets/cln_update_lib branch August 1, 2022 14:41
@callebtc callebtc changed the title Mega-merge 3: CLN update client lib with descriptionhash support (WIP) Mega-merge 3: CLN update client lib with descriptionhash support Aug 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Make something better wallets Funding sources
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants