SwiftLightning
SwiftLightning copied to clipboard
App crashes when built with mainnet conf
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!
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!