*switch to _seenTopics since they are stored in hex already

This commit is contained in:
Derrick Hammer 2022-12-31 14:21:04 -05:00
parent 9cd5e798d9
commit 9b2e04ae3c
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -162,7 +162,7 @@ export default class DHTFlood extends EventEmitter {
let topicString = this.topic.toString("hex");
let peers: Buffer[] = [...this.swarm.peers.values()]
.filter((peerInfo: any) => peerInfo.topics.includes(topicString))
.filter((peerInfo: any) => peerInfo._seenTopics.has(topicString))
.map((peerInfo) => peerInfo.publicKey);
for (const peer of peers) {