Merge branch 'master' into renovate/react-native-screens-3.x

This commit is contained in:
Marcos Rodriguez Vélez 2021-10-30 18:32:02 -04:00
commit 3d13a6d6af
No known key found for this signature in database
GPG key ID: 0D64671698D11C5C
2 changed files with 7 additions and 5 deletions

View file

@ -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);
}
})();

View file

@ -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) => {
<ArrowPicker
onChange={newKey => {
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)}