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

Adopt to changed lightningd api #75

Open
renepickhardt opened this issue May 19, 2020 · 4 comments
Open

Adopt to changed lightningd api #75

renepickhardt opened this issue May 19, 2020 · 4 comments

Comments

@renepickhardt
Copy link

Lightningd is now creating sub directories for mainnet, testnet and regtest in the lightning-dir. This seems to cause issues when running on regtest. C. F https://bitcoin.stackexchange.com/questions/96028/run-lightning-charge-on-c-lightning-regtest/96032#96032

@shesek
Copy link
Contributor

shesek commented May 20, 2020

The new subdirectory structure simply means that the user has to specify the subdirectory as part of the --ln-path argument.

How would you adopt to improve this?

(Note that Lightning Charge does not even have a --network argument, it only accepts the path to the directory, so it couldn't know which network to expect. The NETWORK env var that charge does have is only used in the docker deployment for setting automatically up lightningd/bitcoind.)

@renepickhardt
Copy link
Author

wouldn't it be a solution to extend charged api to have a --network argument. The solution with passing the path was what I explained to the person with the issue on stack exchange. But maybe you are right and everything right now is well. I just thought it might be confusing for more people than the initiater of the stack exchange topic

@shesek
Copy link
Contributor

shesek commented May 27, 2020

Lightning Charge does default to using mainnet if it seems like the user provided the parent data directory instead of the network-specific one (while also showing a deprecation message for this usage). Wouldn't that solve it for most people?

@renepickhardt
Copy link
Author

The problem was that the user used an old docker image in which the lightning node did not make a difference about which network was used as there were not subdirectories. while the user realized that there was a problem with the directory path the user did not understand the subdirectory structure. I thought such an API change might confuse others who might not bother to ask a question thus I pointed it out here. I was just wandering if there is something on charged side that could be done to improve the user experience.
I remembered that my first experience with bitcoin / lightning was actually after charge was released. I had no ideas that the software talks through an RPC interface and at that time I would have been overwhelmed by such error messages and probably frustrated decided to move on.

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

No branches or pull requests

2 participants