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

App crashes when built with mainnet conf #26

Open
ptronico opened this issue Nov 13, 2018 · 1 comment
Open

App crashes when built with mainnet conf #26

ptronico opened this issue Nov 13, 2018 · 1 comment

Comments

@ptronico
Copy link

I'm using a remote bitcoind node on mainnet.

I changed sample_lnd.conf at lnd build and lnd.conf at SwiftLightinig build to properly work in mainnet. The app crashes just after I set the seedkeys or do the login. I think it is related with lnd but I don't know exactly.

Is there any way to build it to work on mainnet? How to do so?

Thanks!

@biscottigelato
Copy link
Owner

I'd assume there are various fixes needed for this to work on Mainnet on the app side. All the addresses right now are assuming Testnet addresses. So Mainnet support ought to be added. That's at least 1 thing I can think of that's needed.

Inside the Xcode project, under the Resources group, there's a copy of lnd.conf. This copy actually gets copied to the iPhone and depending on the simplistic versioning scheme, overwrites the previous version. So if any version of lnd.conf is to be modified, that one should be it. The mechanism to determine versioning and overwrite is in LNServices.swift, in the static initialize() function.

In terms of the specific crash, I am not too sure. Would need to see if there's some sort of log output to get a better idea?

Thanks for giving this a try tho!

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