mirror of
https://github.com/vacp2p/nimbus-eth2-experimental.git
synced 2026-01-09 13:27:55 -05:00
Restore the ability to test the Web3Signer (don't enable it in CI yet)
This commit is contained in:
@@ -107,7 +107,7 @@ DL_GETH="0"
|
|||||||
#NIMBUS EL VARS
|
#NIMBUS EL VARS
|
||||||
RUN_NIMBUS_ETH1="0"
|
RUN_NIMBUS_ETH1="0"
|
||||||
: ${NIMBUS_ETH1_BINARY:="./build/downloads/nimbus$EXE_EXTENSION"}
|
: ${NIMBUS_ETH1_BINARY:="./build/downloads/nimbus$EXE_EXTENSION"}
|
||||||
: ${WEB3SIGNER_VERSION:=22.11.0}
|
: ${WEB3SIGNER_VERSION:=23.1.0}
|
||||||
: ${WEB3SIGNER_DIR:="${BUILD_DIR}/downloads/web3signer-${WEB3SIGNER_VERSION}"}
|
: ${WEB3SIGNER_DIR:="${BUILD_DIR}/downloads/web3signer-${WEB3SIGNER_VERSION}"}
|
||||||
: ${WEB3SIGNER_BINARY:="${WEB3SIGNER_DIR}/bin/web3signer$BAT_EXTENSION"}
|
: ${WEB3SIGNER_BINARY:="${WEB3SIGNER_DIR}/bin/web3signer$BAT_EXTENSION"}
|
||||||
: ${SIGNER_NODES:=0}
|
: ${SIGNER_NODES:=0}
|
||||||
|
|||||||
@@ -18,17 +18,17 @@ SIGNER_NODE_IDX=$1
|
|||||||
# These directories store the keystores and secrets generated by the
|
# These directories store the keystores and secrets generated by the
|
||||||
# simulation script. These are either full validator keys or partial
|
# simulation script. These are either full validator keys or partial
|
||||||
# validator keys depending on the `--signer-nodes` parameter (see above).
|
# validator keys depending on the `--signer-nodes` parameter (see above).
|
||||||
local secrets_dir="${DATA_DIR}/secrets_shares/$((SIGNER_NODE_IDX + 1))"
|
SECRETS_DIR="${DATA_DIR}/secrets_shares/$((SIGNER_NODE_IDX + 1))"
|
||||||
local keystores_dir="${DATA_DIR}/validators_shares/$((SIGNER_NODE_IDX + 1))"
|
KEYSTORES_DIR="${DATA_DIR}/validators_shares/$((SIGNER_NODE_IDX + 1))"
|
||||||
|
|
||||||
# You can re-arrange the keystore files to match the layout expected by
|
# You can re-arrange the keystore files to match the layout expected by
|
||||||
# your signer. The example below demonstrates how this is done when working
|
# your signer. The example below demonstrates how this is done when working
|
||||||
# with the Consensys Web3Signer:
|
# with the Consensys Web3Signer:
|
||||||
#
|
#
|
||||||
# for validator_pubkey in $(ls "$secrets_dir")
|
# for validator_pubkey in $(ls "$SECRETS_DIR")
|
||||||
# do
|
# do
|
||||||
# mv "$secrets_dir/$validator_pubkey" "$secrets_dir/$validator_pubkey.txt"
|
# mv "$SECRETS_DIR/$validator_pubkey" "$SECRETS_DIR/$validator_pubkey.txt"
|
||||||
# mv "$keystores_dir/$validator_pubkey/keystore.json" "$keystores_dir/$validator_pubkey.json"
|
# mv "$KEYSTORES_DIR/$validator_pubkey/keystore.json" "$KEYSTORES_DIR/$validator_pubkey.json"
|
||||||
# done
|
# done
|
||||||
|
|
||||||
# Here you need to launch your signer server process.
|
# Here you need to launch your signer server process.
|
||||||
@@ -45,8 +45,8 @@ local keystores_dir="${DATA_DIR}/validators_shares/$((SIGNER_NODE_IDX + 1))"
|
|||||||
# --metrics-port=$(( BASE_REMOTE_SIGNER_METRICS_PORT + SIGNER_NODE_IDX )) \
|
# --metrics-port=$(( BASE_REMOTE_SIGNER_METRICS_PORT + SIGNER_NODE_IDX )) \
|
||||||
# eth2 \
|
# eth2 \
|
||||||
# --slashing-protection-enabled=false \
|
# --slashing-protection-enabled=false \
|
||||||
# --keystores-passwords-path="${secrets_dir}" \
|
# --keystores-passwords-path="${SECRETS_DIR}" \
|
||||||
# --keystores-path="${keystores_dir}" \
|
# --keystores-path="${KEYSTORES_DIR}" \
|
||||||
# --network="${RUNTIME_CONFIG_FILE}" &> "${DATA_DIR}/web3signer.log" &
|
# --network="${RUNTIME_CONFIG_FILE}" &> "${DATA_DIR}/web3signer.log" &
|
||||||
|
|
||||||
# Finally, you must write the PIDs of any created processes in the `pids` directory
|
# Finally, you must write the PIDs of any created processes in the `pids` directory
|
||||||
|
|||||||
@@ -20,15 +20,15 @@ fi
|
|||||||
|
|
||||||
WEB3SIGNER_NODE_IDX=$1
|
WEB3SIGNER_NODE_IDX=$1
|
||||||
|
|
||||||
local secrets_dir="${DATA_DIR}/secrets_shares/$((WEB3SIGNER_NODE_IDX + 1))"
|
SECRETS_DIR="${DATA_DIR}/secrets_shares/$((WEB3SIGNER_NODE_IDX + 1))"
|
||||||
local keystores_dir="${DATA_DIR}/validators_shares/$((WEB3SIGNER_NODE_IDX + 1))"
|
KEYSTORES_DIR="${DATA_DIR}/validators_shares/$((WEB3SIGNER_NODE_IDX + 1))"
|
||||||
|
|
||||||
# We re-arrange the keystore files to match the layout expected by the Web3Signer
|
# We re-arrange the keystore files to match the layout expected by the Web3Signer
|
||||||
# TODO generateSimulationDeposits can be refactored to produce the right layout from the start
|
# TODO generateSimulationDeposits can be refactored to produce the right layout from the start
|
||||||
for validator_pubkey in $(ls "$secrets_dir")
|
for validator_pubkey in $(ls "$SECRETS_DIR")
|
||||||
do
|
do
|
||||||
mv "$secrets_dir/$validator_pubkey" "$secrets_dir/$validator_pubkey.txt"
|
mv "$SECRETS_DIR/$validator_pubkey" "$SECRETS_DIR/$validator_pubkey.txt"
|
||||||
mv "$keystores_dir/$validator_pubkey/keystore.json" "$keystores_dir/$validator_pubkey.json"
|
mv "$KEYSTORES_DIR/$validator_pubkey/keystore.json" "$KEYSTORES_DIR/$validator_pubkey.json"
|
||||||
done
|
done
|
||||||
|
|
||||||
# still participate in set -e, ideally
|
# still participate in set -e, ideally
|
||||||
@@ -40,8 +40,8 @@ done
|
|||||||
--metrics-port=$(( BASE_REMOTE_SIGNER_METRICS_PORT + WEB3SIGNER_NODE_IDX )) \
|
--metrics-port=$(( BASE_REMOTE_SIGNER_METRICS_PORT + WEB3SIGNER_NODE_IDX )) \
|
||||||
eth2 \
|
eth2 \
|
||||||
--slashing-protection-enabled=false \
|
--slashing-protection-enabled=false \
|
||||||
--keystores-passwords-path="${secrets_dir}" \
|
--keystores-passwords-path="${SECRETS_DIR}" \
|
||||||
--keystores-path="${keystores_dir}" \
|
--keystores-path="${KEYSTORES_DIR}" \
|
||||||
--network="${RUNTIME_CONFIG_FILE}" &> "${DATA_DIR}/logs/web3signer.${WEB3SIGNER_NODE_IDX}.log" &
|
--network="${RUNTIME_CONFIG_FILE}" &> "${DATA_DIR}/logs/web3signer.${WEB3SIGNER_NODE_IDX}.log" &
|
||||||
|
|
||||||
echo $! > "${DATA_DIR}/pids/web3signer.${WEB3SIGNER_NODE_IDX}"
|
echo $! > "${DATA_DIR}/pids/web3signer.${WEB3SIGNER_NODE_IDX}"
|
||||||
|
|||||||
Reference in New Issue
Block a user