2020-10-01 11:38:32 +00:00
# Dingpu testnet
## Basic chat usage
2020-10-15 11:56:53 +00:00
> If historical messaging is desired, the chat app requires that the remote peer specified in `storenode` option supports the WakuStore protocol. For the current cluster node deployed as part of Dingpu this is already the case.
2020-10-01 11:38:32 +00:00
Start two chat apps:
```
2020-10-15 11:56:53 +00:00
./build/chat2 --ports-shift:0 --storenode:/ip4/134.209.139.210/tcp/60000/p2p/16Uiu2HAmJb2e28qLXxT5kZxVUUoJt72EMzNGXB47Rxx5hw3q4YjS --staticnode:/ip4/134.209.139.210/tcp/60000/p2p/16Uiu2HAmJb2e28qLXxT5kZxVUUoJt72EMzNGXB47Rxx5hw3q4YjS
./build/chat2 --ports-shift:1 --storenode:/ip4/134.209.139.210/tcp/60000/p2p/16Uiu2HAmJb2e28qLXxT5kZxVUUoJt72EMzNGXB47Rxx5hw3q4YjS --staticnode:/ip4/134.209.139.210/tcp/60000/p2p/16Uiu2HAmJb2e28qLXxT5kZxVUUoJt72EMzNGXB47Rxx5hw3q4YjS
2020-10-01 11:38:32 +00:00
```
2020-10-15 09:30:56 +00:00
By specifying `staticnode` it connects to that node subscribes to the `waku` topic. This ensures messages are relayed properly.
2020-10-01 11:38:32 +00:00
Then type messages to publish.
2020-10-07 15:13:27 +00:00
2020-10-21 09:54:29 +00:00
## 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
2020-10-07 15:13:27 +00:00
## Dingpu cluster node
```
/ip4/134.209.139.210/tcp/60000/p2p/16Uiu2HAmJb2e28qLXxT5kZxVUUoJt72EMzNGXB47Rxx5hw3q4YjS
```
2020-10-15 09:30:56 +00:00
2020-10-21 09:54:29 +00:00
## Run a node
To just run a node and not interact on the chat it is enough to run `wakunode2` :
```
./build/wakunode2 --staticnode:< multiaddr >
```
You can also run the `wakubridge` process, which currently runs both a Waku v1
and Waku v2 node. Currently, it has the same effect as running a `wakunode` and
`wakunode2` process separately, but bridging functionality will be added later
to this application.
```
./build/wakubridge --staticnodev2:< multiaddr > --fleetv1:test
```