mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-02-09 05:04:17 +00:00
* implement in-memory block graph * store tail block in database * resolve unknown parents by syncing them from peers * introduce concept of resolved blocks and attestations - those that follow minimal protocol rules * update state head lazily * log more stuff * shortHash -> shortLog * start 9/10 beacon nodes by default, last can be started manually * see also #134 * fix start.sh epoch length
30 lines
810 B
Bash
Executable File
30 lines
810 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -eux
|
|
|
|
. $(dirname $0)/vars.sh
|
|
|
|
BOOTSTRAP_NODES_FLAG="--bootstrapNodesFile:$MASTER_NODE_ADDRESS_FILE"
|
|
|
|
if [[ "$1" == "0" ]]; then
|
|
BOOTSTRAP_NODES_FLAG=""
|
|
fi
|
|
|
|
DATA_DIR=$SIMULATION_DIR/node-${1}
|
|
|
|
$BEACON_NODE_BIN \
|
|
--dataDir:$DATA_DIR \
|
|
--validator:$STARTUP_DIR/validator-${1}1.json \
|
|
--validator:$STARTUP_DIR/validator-${1}2.json \
|
|
--validator:$STARTUP_DIR/validator-${1}3.json \
|
|
--validator:$STARTUP_DIR/validator-${1}4.json \
|
|
--validator:$STARTUP_DIR/validator-${1}5.json \
|
|
--validator:$STARTUP_DIR/validator-${1}6.json \
|
|
--validator:$STARTUP_DIR/validator-${1}7.json \
|
|
--validator:$STARTUP_DIR/validator-${1}8.json \
|
|
--validator:$STARTUP_DIR/validator-${1}9.json \
|
|
--tcpPort:5000${1} \
|
|
--udpPort:5000${1} \
|
|
--stateSnapshot:$SNAPSHOT_FILE \
|
|
$BOOTSTRAP_NODES_FLAG
|