From 14edcdc6cec7dc49ed9596772476407e19e82f2d Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Fri, 30 Dec 2022 18:27:18 -0500 Subject: [PATCH] *Bootstrap argument needs to be passed to DHT, not swarm --- src/modules/swarm.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/modules/swarm.ts b/src/modules/swarm.ts index efd88dd..1e14c31 100644 --- a/src/modules/swarm.ts +++ b/src/modules/swarm.ts @@ -32,10 +32,12 @@ export async function start() { const address = bootstrap.address() as AddressInfo; node = new Hyperswarm({ keyPair, - dht: new DHT({ keyPair }), - bootstrap: [{ host: address.address, port: address.port }].concat( - require("@hyperswarm/dht/lib/constants").BOOTSTRAP_NODES - ), + dht: new DHT({ + keyPair, + bootstrap: [{ host: address.address, port: address.port }].concat( + require("@hyperswarm/dht/lib/constants").BOOTSTRAP_NODES + ), + }), }); // @ts-ignore