*Update dist

This commit is contained in:
Derrick Hammer 2022-12-31 14:21:32 -05:00
parent 0a335997bf
commit 9333ab7a38
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 2 deletions

4
dist/index.js vendored
View File

@ -123,11 +123,11 @@ class DHTFlood extends events_1.default {
const { id, messageNumber } = this;
let topicString = this.topic.toString("hex");
let peers = [...this.swarm.peers.values()]
.filter((peerInfo) => peerInfo.topics.includes(topicString))
.filter((peerInfo) => peerInfo._seenTopics.has(topicString))
.map((peerInfo) => peerInfo.publicKey);
for (const peer of peers) {
const conn = this.swarm._allConnections.get(peer);
if (conn) {
if (!conn) {
continue;
}
const message = this.setupPeer(conn);