REF: ldk will NOT reconnect to all known peers on startup to save bandwidth & RAM

This commit is contained in:
Overtorment 2022-06-14 11:41:39 +01:00
parent cc312609ea
commit 12d1d8c691

View file

@ -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() {