Closed jacohend closed 5 years ago
how are you instantiating the lnd object?
@alexbosworth Thanks. Here's how I'm instantiating:
let tlsCert = toBase64(`${homedir}/.lnd/tls.cert`)
let { lnd } = lnService.unauthenticatedLndGrpc({
cert: tlsCert,
socket: '127.0.0.1:10009'
})
Logging indicates the tls cert is being correctly decoded to b64 string. LND is running in docker-compose with 10009 exposed in host mode.
How are you generating the seed? There is a generate seed method you should be using
You can try just logging the err by itself, it might help to see what is going on
If you want to see a full flow of creating a wallet, you can check this test file: https://github.com/alexbosworth/ln-service/blob/master/test/macros/spawn_lnd.js
I was using the seed method to create the cipher_seed_mnemonic
I passed to initWallet. I couldn't figure out the issue, so I went with using my own grpc client and it seems to be working fine.
I'm attempting to use createWallet on an uninitialized lnd instance to initialize a wallet from an existing seed/password. I'm receiving
Could not unlock the lnd wallet: 503,UnexpectedUnlockWalletError,[object Object]
I think not being able to see the error Object is a bug, and it's not clear why I'd be getting an "unlock" error when I'm not trying to unlock the wallet.
This is my code:
Any assistance would be appreciated.