mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-09 13:56:23 +00:00
0f758c5f02
* Working Makefile targets for Capella devnet2 make capella-devnet-2 make clean-capella-devnet-2 You'll need to have https://github.com/tmuxinator/tmuxinator installed. It's available as a regular package in most Linux distributions or through Nix or Brew on macOS. This commit also fixes the initial hang in the Eth1 monitor in the "find TTD block" procedure through a fix to the network metadata files which hasn't been upstreamed yet. Other changes: * Disabled Geth snap sync in the simulation When all Geth nodes are configured to run with snap sync enabled, they all start snap sync after the first forkchoiceUpdated which causes the BNs to skip validator duties because the EL is syncing. The snap sync never completes due to poor connectivity between the Geth nodes in the simulation.
25 lines
561 B
Bash
25 lines
561 B
Bash
if [ -z "${REPO_PATHS_SOURCED:-}" ]; then
|
|
REPO_PATHS_SOURCED=1
|
|
|
|
SCRIPTS_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd)
|
|
BUILD_DIR=$(cd "$SCRIPTS_DIR/../build" &> /dev/null && pwd)
|
|
|
|
data_dir_for_network() {
|
|
NETWORK_ID=$(cat "$NETWORK/genesis.json" | jq '.config.chainId')
|
|
echo "$BUILD_DIR/data/$NETWORK_ID"
|
|
}
|
|
|
|
create_data_dir_for_network() {
|
|
NETWORK_DIR=$(data_dir_for_network)
|
|
mkdir -p "$NETWORK_DIR"
|
|
echo "$NETWORK_DIR"
|
|
}
|
|
|
|
create_jwt_token() {
|
|
if [ ! -f "$1" ]; then
|
|
openssl rand -hex 32 | tr -d "\n" > "$1"
|
|
fi
|
|
}
|
|
|
|
fi
|