*filter for peers in neighbors in _getBootstrapInfo
This commit is contained in:
parent
48ceded78f
commit
587739334a
|
@ -362,6 +362,9 @@ export default class DHTCache extends EventEmitter {
|
|||
}
|
||||
const connectedTo = this.graph
|
||||
.neighbors(id)
|
||||
.filter(
|
||||
(item: any) => this.graph.node.get(item)?.type === EntityType.PUBKEY
|
||||
)
|
||||
.map((id: string) => Buffer.from(id, "hex"));
|
||||
state[id] = { connectedTo };
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue