mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-09 05:52:45 +00:00
6036f2e7d7
* Local sim impovements * Added support for running Capella and EIP-4844 simulations by downloading the correct version of Geth. * Added support for using Nimbus remote signer and Web3Signer. Use 2 out of 3 threshold signing configuration in the mainnet configuration and regular remote signing in the minimal one. * The local testnet simulation can now use a payload builder. This is currently not activated in CI due to lack of automated procedures for installing third-party relays or builders. You are adviced to use mergemock for now, but for most realistic results, we can create a simple builder based on the nimbus-eth1 codebase that will be able to propose transactions from the regular network mempool. * Start the simulation from a merged state. This would allow us to start removing pre-merge functionality such as the gossip subsciption logic. The commit also removes the merge-forcing hack installed after the TTD removal. * Consolidate all the tools used in the local simulation into a single `ncli_testnet` binary.
33 lines
1.2 KiB
Bash
33 lines
1.2 KiB
Bash
# beacon_chain
|
|
# Copyright (c) 2022 Status Research & Development GmbH
|
|
# Licensed and distributed under either of
|
|
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
|
|
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
|
|
# at your option. This file may not be copied, modified, or distributed except according to those terms.
|
|
|
|
if [ -z "${GETH_VARS_SOURCED:-}" ]; then
|
|
GETH_VARS_SOURCED=1
|
|
|
|
GETH_NUM_NODES="${GETH_NUM_NODES:-4}"
|
|
GETH_BASE_NET_PORT="${BASE_EL_NET_PORT:-30303}"
|
|
GETH_BASE_RPC_PORT="${BASE_EL_RPC_PORT:-8545}"
|
|
GETH_BASE_WS_PORT="${BASE_EL_WS_PORT:-8546}"
|
|
GETH_BASE_AUTH_RPC_PORT="${BASE_EL_AUTH_RPC_PORT:-8551}"
|
|
GETH_PORT_OFFSET="${EL_PORT_OFFSET:-20}"
|
|
DISCOVER="--nodiscover"
|
|
|
|
GETH_NET_PORTS=()
|
|
GETH_AUTH_RPC_PORTS=()
|
|
GETH_DATA_DIRS=()
|
|
|
|
GETH_LAST_NODE_IDX=$((GETH_NUM_NODES - 1))
|
|
|
|
for GETH_NODE_IDX in $(seq 0 $GETH_LAST_NODE_IDX); do
|
|
GETH_NET_PORTS+=($(( GETH_NODE_IDX * GETH_PORT_OFFSET + GETH_BASE_NET_PORT )))
|
|
GETH_RPC_PORTS+=($(( GETH_NODE_IDX * GETH_PORT_OFFSET + GETH_BASE_RPC_PORT )))
|
|
GETH_AUTH_RPC_PORTS+=($(( GETH_NODE_IDX * GETH_PORT_OFFSET + GETH_BASE_AUTH_RPC_PORT )))
|
|
GETH_DATA_DIRS+=("${DATA_DIR}/geth-${GETH_NODE_IDX}")
|
|
done
|
|
|
|
fi
|