fix: pass bootstrap to libp2p instance

This commit is contained in:
Franck Royer 2022-07-25 20:33:26 +10:00 committed by fryorcraken.eth
parent 8922511cc9
commit e119fc46d6
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
2 changed files with 2 additions and 1 deletions

View File

@ -58,7 +58,7 @@ describe("Waku Dial [node only]", function () {
nwaku = new Nwaku(makeLogFileName(this));
await nwaku.start();
const multiAddrWithId = await nwaku.getMultiaddrWithId();
console.log(multiAddrWithId);
waku = await createWaku({
staticNoiseKey: NOISE_KEY_1,
bootstrap: { peers: [multiAddrWithId] },

View File

@ -96,6 +96,7 @@ export async function createWaku(options?: CreateOptions): Promise<Waku> {
streamMuxers: [new Mplex()],
pubsub: new WakuRelay(options),
connectionEncryption: [new Noise()],
peerDiscovery: peerDiscovery,
},
options?.libp2p ?? {}
);