From db2a47220b9c621a5a8abe7ee2105aa49e1336a6 Mon Sep 17 00:00:00 2001 From: Oskar Thoren Date: Mon, 9 Dec 2019 13:10:58 +0800 Subject: [PATCH] Basic script, README, gitignore tweaks --- .gitignore | 1 + waku/README.md | 6 ++++++ waku/start.sh | 22 ++++++++++++++++++++++ 3 files changed, 29 insertions(+) create mode 100644 .gitignore create mode 100755 waku/start.sh 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}