diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6320cd2 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +data \ No newline at end of file diff --git a/waku/README.md b/waku/README.md index f546416..a7237c0 100644 --- a/waku/README.md +++ b/waku/README.md @@ -14,7 +14,13 @@ [nim-beacon-chain](https://github.com/status-im/nim-beacon-chain), with: > make VALIDATORS=192 NODES=6 USER_NODES=1 eth2_network_simulation +> make USE_MULTITAIL="yes" eth2_network_simulation + And progressively more sophisticated modes. That is, starting with a basic simulation, then testnet, multi client test net, monitoring, state simulation, and so on. For now, basics are enough. I.e. a few nodes that send some Waku envelopes between eachother. + +## To run + +`./start.sh` diff --git a/waku/start.sh b/waku/start.sh new file mode 100755 index 0000000..64aa7b0 --- /dev/null +++ b/waku/start.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +set -eo pipefail + +SIM_ROOT="$(pwd)" +SIMULATION_DIR="${SIM_ROOT}/data" +WAKU_NODE_BIN="${SIMULATION_DIR}/waku_node" + +echo "$SIM_ROOT" + +cd "$SIM_ROOT" + +mkdir -p "$SIMULATION_DIR" + +# NIMFLAGS +# DEFS + +# XXX: Right now this is shh basic client +echo "Building $WAKU_NODE_BIN" + +echo "Running $WAKU_NODE_BIN" +${WAKU_NODE_BIN}