*If we do not have this peer in our dag, then send them a direct bootstrap request to grab all their peers

This commit is contained in:
Derrick Hammer 2022-12-17 12:28:24 -05:00
parent 6bf6ea3595
commit 3a4ddbf888
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 0 deletions

View File

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