fix: onConnect should not add addr to the addressBook

This commit is contained in:
Vasco Santos
2020-05-13 10:30:57 +02:00
committed by Jacob Heun
parent 8bf5a70bb8
commit 2b45fee0ed
3 changed files with 3 additions and 7 deletions

View File

@ -182,7 +182,6 @@ class ConnectionManager extends EventEmitter {
this.emit('peer:connect', connection)
}
this._libp2p.peerStore.addressBook.add(peerId, [connection.remoteAddr])
this._libp2p.peerStore.keyBook.set(peerId, peerId.pubKey)
if (!this._peerValues.has(peerIdStr)) {