mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-10 22:36:01 +00:00
f5e9b9a922
The number of user nodes is now specified with `USER_NODES`. To make the instructions more stable, the "numeric id" of the user nodes will be starting from 0 (so you can always use `run_node.sh 0` to start a user node). If you specify a node index above the total number of nodes, you'll launch a node without any validators attached (this is useful for testing the sync for example).
21 lines
396 B
Bash
Executable File
21 lines
396 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Read in variables
|
|
set -a
|
|
source "$(dirname "$0")/vars.sh"
|
|
|
|
cd $(dirname "$0")
|
|
rm -rf data
|
|
|
|
tmux new-session -s 'beacon_node' -d
|
|
|
|
# maybe these should be moved to a user config file
|
|
tmux set-option -g history-limit 999999
|
|
tmux set -g mouse on
|
|
|
|
tmux send-keys -t 0 './start.sh' Enter
|
|
tmux new-window -n "demo_node" "./wait_master_node.sh && ./run_node.sh 0"
|
|
|
|
tmux attach-session -d
|
|
|