diff --git a/examples/v2/chat2.nim b/examples/v2/chat2.nim index 36ebcedb4..d13b0afb5 100644 --- a/examples/v2/chat2.nim +++ b/examples/v2/chat2.nim @@ -30,7 +30,7 @@ const Help = """ exit: closes the chat """ -const DefaultTopic = "waku" +const DefaultTopic = "/waku/2/default-waku/proto" const Dingpu = "dingpu".toBytes const DefaultContentTopic = ContentTopic(uint32.fromBytes(Dingpu)) diff --git a/tests/v2/test_wakunode.nim b/tests/v2/test_wakunode.nim index 7f808a0cb..4c032afbb 100644 --- a/tests/v2/test_wakunode.nim +++ b/tests/v2/test_wakunode.nim @@ -143,7 +143,7 @@ procSuite "WakuNode": await node2.start() node2.mountStore() - await node2.subscriptions.notify("waku", message) + await node2.subscriptions.notify("/waku/2/default-waku/proto", message) await sleepAsync(2000.millis) @@ -186,11 +186,11 @@ procSuite "WakuNode": msg == message completionFut.complete(true) - await node1.subscribe(FilterRequest(topic: "waku", contentFilters: @[ContentFilter(topics: @[contentTopic])]), handler) + await node1.subscribe(FilterRequest(topic: "/waku/2/default-waku/proto", contentFilters: @[ContentFilter(topics: @[contentTopic])]), handler) await sleepAsync(2000.millis) - await node2.subscriptions.notify("waku", message) + await node2.subscriptions.notify("/waku/2/default-waku/proto", message) await sleepAsync(2000.millis) diff --git a/waku/node/config_bridge.nim b/waku/node/config_bridge.nim index ad5d042fb..f4fab7a59 100644 --- a/waku/node/config_bridge.nim +++ b/waku/node/config_bridge.nim @@ -108,8 +108,8 @@ type name: "nodekeyv2" }: crypto.PrivateKey topics* {. - desc: "Default topics to subscribe to (space seperated list)" - defaultValue: "waku" + desc: "Default topics to subscribe to (space separated list)" + defaultValue: "/waku/2/default-waku/proto" name: "topics" .}: string store* {. diff --git a/waku/node/v2/config.nim b/waku/node/v2/config.nim index 4f8ee848d..38a6e5e6f 100644 --- a/waku/node/v2/config.nim +++ b/waku/node/v2/config.nim @@ -69,8 +69,8 @@ type name: "filternode" }: string topics* {. - desc: "Default topics to subscribe to (space seperated list)." - defaultValue: "waku" + desc: "Default topics to subscribe to (space separated list)." + defaultValue: "/waku/2/default-waku/proto" name: "topics" .}: string # NOTE: Signature is different here, we return PrivateKey and not KeyPair diff --git a/waku/node/v2/quicksim2.nim b/waku/node/v2/quicksim2.nim index b061efbe3..e1a40d185 100644 --- a/waku/node/v2/quicksim2.nim +++ b/waku/node/v2/quicksim2.nim @@ -11,6 +11,8 @@ template sourceDir: string = currentSourcePath.rsplit(DirSep, 1)[0] const sigWakuPath = sourceDir / "rpc" / "wakucallsigs.nim" createRpcSigs(RpcHttpClient, sigWakuPath) +const defaultTopic = "/waku/2/default-waku/proto" + const topicAmount = 10 #100 proc message(i: int): ProtoBuffer = @@ -31,7 +33,7 @@ for i in 0..