Monday
Monday copied to clipboard
Bug: Wallet creation
Describe the bug Wallet gets created even if you dont want it to
Without testing, my theory is that this has to do with .reset of LightningNodeService. If the LightningNodeService is .init without there being a saved mnemonic in the keychain, it will simply create a new one.
Some thoughts for how to handle this:
- Refactor so that the node service does not start if no mnemonic is found in keychain? (make it a parameter that needs to be passed in)
- This might mean making LightningNodeClient an optional in WalletClient
this might be fixed in 204