From 6558ac60bbf72d7766d52823c498e53746a10ec3 Mon Sep 17 00:00:00 2001 From: Franck Royer Date: Mon, 15 Mar 2021 15:34:56 +1100 Subject: [PATCH] Force identify nim node to support waku protocol --- src/lib/node.spec.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lib/node.spec.ts b/src/lib/node.spec.ts index 57bf27dab6..8416efb591 100644 --- a/src/lib/node.spec.ts +++ b/src/lib/node.spec.ts @@ -110,6 +110,11 @@ test('Nim-interop: js node sends message to nim node', async (t) => { const nimWaku = new NimWaku(t.title); await nimWaku.start({ staticnode: multiAddrWithId }); + // TODO: Remove this hack, tracked with https://github.com/status-im/nim-waku/issues/419 + node.identifyService!.peerStore.protoBook.set(await nimWaku.getPeerId(), [ + CODEC, + ]); + await wakuRelayNode.publish(message); await nimWaku.waitForLog('WakuMessage received');