Basic script, README, gitignore tweaks

This commit is contained in:
Oskar Thoren 2019-12-09 13:10:58 +08:00
parent 683cc1bed9
commit db2a47220b
No known key found for this signature in database
GPG Key ID: B2ECCFD3BC2EF77E
3 changed files with 29 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
data

View File

@ -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`

22
waku/start.sh Executable file
View File

@ -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}