From 12d1d8c691b351efdc5440f9b294179f64aa4e47 Mon Sep 17 00:00:00 2001 From: Overtorment Date: Tue, 14 Jun 2022 11:41:39 +0100 Subject: [PATCH] REF: ldk will NOT reconnect to all known peers on startup to save bandwidth & RAM --- class/wallets/lightning-ldk-wallet.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/class/wallets/lightning-ldk-wallet.ts b/class/wallets/lightning-ldk-wallet.ts index 3147fffe3..78d24cbc3 100644 --- a/class/wallets/lightning-ldk-wallet.ts +++ b/class/wallets/lightning-ldk-wallet.ts @@ -625,14 +625,6 @@ export class LightningLdkWallet extends LightningCustodianWallet { await this.connectPeer(pubkey, host, port); connectedInThisRun[pubkey] = true; } - - // now, reconnecting peers - for (const uri of Object.values(LightningLdkWallet._predefinedNodes)) { - const pk = uri.split('@')[0]; - if (connectedInThisRun[pk]) continue; - const { pubkey, host, port } = await this.lookupNodeConnectionDetailsByPubkey(pk); - await this.connectPeer(pubkey, host, port); - } } async channelsNeedReestablish() {