This commit is contained in:
Justin (shocknet) 2024-07-05 23:06:14 -04:00
parent 78dc828624
commit 5940f5f3c0

View file

@ -93,8 +93,8 @@ export class Unlocker {
await new Promise(res => setTimeout(res, 5000)); await new Promise(res => setTimeout(res, 5000));
} }
if (!info.ok) { if (!info || !info.ok) {
throw new Error("failed to init lnd wallet " + info.failure) throw new Error("failed to init lnd wallet " + (info ? info.failure : "unknown error"))
} }
await this.storage.liquidityStorage.SaveNodeSeed(info.pub, JSON.stringify(encryptedData)) await this.storage.liquidityStorage.SaveNodeSeed(info.pub, JSON.stringify(encryptedData))
this.log("created wallet with pub:", info.pub) this.log("created wallet with pub:", info.pub)