diff --git a/class/wallets/lightning-ldk-wallet.ts b/class/wallets/lightning-ldk-wallet.ts index 06a425b71..81e7c2f34 100644 --- a/class/wallets/lightning-ldk-wallet.ts +++ b/class/wallets/lightning-ldk-wallet.ts @@ -268,7 +268,7 @@ export class LightningLdkWallet extends LightningCustodianWallet { this._execInBackground(this.reestablishChannels); if (this.timeToCheckBlockchain()) this._execInBackground(this.checkBlockchain); - } catch (error) { + } catch (error: any) { alert('LDK init error: ' + error.message); } } @@ -491,7 +491,9 @@ export class LightningLdkWallet extends LightningCustodianWallet { try { await this.reconnectPeersWithPendingChannels(); - } finally { + } catch (error: any) { + console.log('fetchTransactions failed'); + console.log(error.message); } await this.getUserInvoices(); // it internally updates paid user invoices @@ -673,7 +675,7 @@ export class LightningLdkWallet extends LightningCustodianWallet { (async () => { try { await func.call(that); - } catch (error) { + } catch (error: any) { alert('_execInBackground error:' + error.message); } })(); diff --git a/screen/lnd/ldkOpenChannel.tsx b/screen/lnd/ldkOpenChannel.tsx index f59466e1e..6a014a8d6 100644 --- a/screen/lnd/ldkOpenChannel.tsx +++ b/screen/lnd/ldkOpenChannel.tsx @@ -273,7 +273,7 @@ const LdkOpenChannel = (props: any) => { address={remoteHostWithPubkey} isLoading={isLoading} inputAccessoryViewID={(BlueDismissKeyboardInputAccessory as any).InputAccessoryViewID} - onChangeText={(text) => setParams({ remoteHostWithPubkey: text })} + onChangeText={text => setParams({ remoteHostWithPubkey: text })} onBarScanned={onBarScanned} launchedBy={name} /> @@ -282,7 +282,7 @@ const LdkOpenChannel = (props: any) => { { const nodes = LightningLdkWallet.getPredefinedNodes(); - if (nodes[newKey]) setParams({ remoteHostWithPubkey: nodes[newKey]}); + if (nodes[newKey]) setParams({ remoteHostWithPubkey: nodes[newKey] }); }} items={LightningLdkWallet.getPredefinedNodes()} isItemUnknown={!Object.values(LightningLdkWallet.getPredefinedNodes()).some(node => node === remoteHostWithPubkey)}