mirror of https://github.com/waku-org/js-waku.git
fix: pass bootstrap to libp2p instance
This commit is contained in:
parent
8922511cc9
commit
e119fc46d6
|
@ -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] },
|
||||
|
|
|
@ -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 ?? {}
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue