mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-06-21 13:01:33 +00:00
fix: onConnect should not add addr to the addressBook
This commit is contained in:
@ -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)) {
|
||||
|
Reference in New Issue
Block a user