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

Question about Lamp update and lightningd updates #27

Open
darosior opened this issue Jul 19, 2020 · 5 comments
Open

Question about Lamp update and lightningd updates #27

darosior opened this issue Jul 19, 2020 · 5 comments
Labels
enhancement New feature or request

Comments

@darosior
Copy link
Contributor

Would Lamp check if I'm not running the latest lightningd binaries ? And if so would it be downloading them on startup ?

@lvaccaro
Copy link
Collaborator

lvaccaro commented Jul 19, 2020

Now, Lamp fetches binaries from https://github.com/lvaccaro/lightning_ndk release artifacts and the tag name is hardcoded in the app.

Unfortunately, lightning_ndk releases could not strictly match lightningd release: we could require to update esplora plugin or something else, or we don't provide tag version for minor releases. So I think the version check should be on the lightning_ndk repo and, in that case, the app need to get the installed lightning_ndk version.

@darosior
Copy link
Contributor Author

Yeah, I meant: would be great that Lamp detect at startup that a new Android-ported lightningd binary is available at https://github.com/lvaccaro/lightning_ndk

@lvaccaro
Copy link
Collaborator

lvaccaro commented Jul 19, 2020

Yes, and also the app should know the installed lightning_ndk version to compare with it. Have you any suggestions?

@lvaccaro lvaccaro added the enhancement New feature or request label Jul 19, 2020
@lvaccaro
Copy link
Collaborator

I am thinking to remove the download functionality from the app and embed clightning binaries in the apk.
So a user with the last version of the app has also the latest version of clightning and esplora.

On the other hand, this force update of the clightning binaries allows to be aligned with the daemon booting procedure: clightning options parameters could be updated based on lightning version, so a Lamp release (with new interface) could be crash running an older clightning binaries (it requires to manually erase binaries and redownload again).

What do you think?

@darosior
Copy link
Contributor Author

it requires to manually erase binaries

Why manually ?

What do you think?

This seems wise with regard to Lamp <--> CL compatibility. However my main interrogations are on the Android side: will i be able to update as today with "this won't erase any data" message ? I like this, and i think potential less technical users will really rely on it in the future. If binaries get replaced maybe it won't appear (or worse "this will erase old data") ?
Also, would it keep the APK size reasonable ? Maybe this is a tradeoff we must accept to avoid run-time download of crucial binaries.

Ok so after having thought out loud above, i think overall it's the right direction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants