mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-03-24 23:37:12 +01:00
REF: ldk will NOT reconnect to all known peers on startup to save bandwidth & RAM
This commit is contained in:
parent
cc312609ea
commit
12d1d8c691
1 changed files with 0 additions and 8 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Reference in a new issue