From e67301f1f62f5c16fb4118b2da59c3ded308c22b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oskar=20Thor=C3=A9n?= Date: Thu, 15 Oct 2020 17:30:56 +0800 Subject: [PATCH] Update dingpu.md --- docs/tutorial/dingpu.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/tutorial/dingpu.md b/docs/tutorial/dingpu.md index adb81a5b7..92530a0da 100644 --- a/docs/tutorial/dingpu.md +++ b/docs/tutorial/dingpu.md @@ -5,11 +5,11 @@ Start two chat apps: ``` -./build/chat2 --ports-shift=0 -./build/chat2 --ports-shift=1 +./build/chat2 --ports-shift=0 --staticnode:/ip4/134.209.139.210/tcp/60000/p2p/16Uiu2HAmJb2e28qLXxT5kZxVUUoJt72EMzNGXB47Rxx5hw3q4YjS +./build/chat2 --ports-shift=1 --staticnode:/ip4/134.209.139.210/tcp/60000/p2p/16Uiu2HAmJb2e28qLXxT5kZxVUUoJt72EMzNGXB47Rxx5hw3q4YjS ``` -Type `/connect` then paste address of other node. +By specifying `staticnode` it connects to that node subscribes to the `waku` topic. This ensures messages are relayed properly. Then type messages to publish. @@ -18,3 +18,6 @@ Then type messages to publish. ``` /ip4/134.209.139.210/tcp/60000/p2p/16Uiu2HAmJb2e28qLXxT5kZxVUUoJt72EMzNGXB47Rxx5hw3q4YjS ``` +## Interactively add a node + +There is also an interactive mode. Type `/connect` then paste address of other node. However, this currently has some timing issues with mesh not being updated, so it is adviced not to use this until this has been addressed. See https://github.com/status-im/nim-waku/issues/231