From 3a4ddbf888a5d2a5ec98814de0266e6b3d41e004 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sat, 17 Dec 2022 12:28:24 -0500 Subject: [PATCH] *If we do not have this peer in our dag, then send them a direct bootstrap request to grab all their peers --- src/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/index.ts b/src/index.ts index 26cac0d..76e1c2d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -191,6 +191,8 @@ export default class DHTCache extends EventEmitter { id, }); + this.send(peer, { type: Type.BOOTSTRAP_REQUEST }); + this._emitHeartbeat(peer); this.log.debug(`Relay peer connected: ${stringId}`);