mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-02 16:21:42 +00:00
Fix Kurtosis doppelganger CI (#7343)
This commit is contained in:
@@ -74,18 +74,27 @@ if [[ "$BEHAVIOR" == "failure" ]]; then
|
||||
vc_1_keys_artifact_id="1-lighthouse-geth-$vc_1_range_start-$vc_1_range_end"
|
||||
service_name=vc-1-doppelganger
|
||||
|
||||
kurtosis service add \
|
||||
--files /validator_keys:$vc_1_keys_artifact_id,/testnet:el_cl_genesis_data \
|
||||
$ENCLAVE_NAME $service_name $LH_IMAGE_NAME -- lighthouse \
|
||||
vc \
|
||||
--debug-level info \
|
||||
--testnet-dir=/testnet \
|
||||
--validators-dir=/validator_keys/keys \
|
||||
--secrets-dir=/validator_keys/secrets \
|
||||
--init-slashing-protection \
|
||||
--beacon-nodes=http://$bn_2_url:$bn_2_port \
|
||||
--enable-doppelganger-protection \
|
||||
--suggested-fee-recipient 0x690B9A9E9aa1C9dB991C7721a92d351Db4FaC990
|
||||
kurtosis service add $ENCLAVE_NAME $service_name --json-service-config - << EOF
|
||||
{
|
||||
"image": "$LH_IMAGE_NAME",
|
||||
"files": {
|
||||
"/validator_keys": ["$vc_1_keys_artifact_id"],
|
||||
"/testnet": ["el_cl_genesis_data"]
|
||||
},
|
||||
"cmd": [
|
||||
"lighthouse",
|
||||
"vc",
|
||||
"--debug-level", "info",
|
||||
"--testnet-dir=/testnet",
|
||||
"--validators-dir=/validator_keys/keys",
|
||||
"--secrets-dir=/validator_keys/secrets",
|
||||
"--init-slashing-protection",
|
||||
"--beacon-nodes=http://$bn_2_url:$bn_2_port",
|
||||
"--enable-doppelganger-protection",
|
||||
"--suggested-fee-recipient", "0x690B9A9E9aa1C9dB991C7721a92d351Db4FaC990"
|
||||
]
|
||||
}
|
||||
EOF
|
||||
|
||||
# Check if doppelganger VC has stopped and exited. Exit code 1 means the check timed out and VC is still running.
|
||||
check_exit_cmd="until [ \$(get_service_status $service_name) != 'RUNNING' ]; do sleep 1; done"
|
||||
@@ -110,18 +119,27 @@ if [[ "$BEHAVIOR" == "success" ]]; then
|
||||
vc_4_keys_artifact_id="4-lighthouse-geth-$vc_4_range_start-$vc_4_range_end"
|
||||
service_name=vc-4
|
||||
|
||||
kurtosis service add \
|
||||
--files /validator_keys:$vc_4_keys_artifact_id,/testnet:el_cl_genesis_data \
|
||||
$ENCLAVE_NAME $service_name $LH_IMAGE_NAME -- lighthouse \
|
||||
vc \
|
||||
--debug-level debug \
|
||||
--testnet-dir=/testnet \
|
||||
--validators-dir=/validator_keys/keys \
|
||||
--secrets-dir=/validator_keys/secrets \
|
||||
--init-slashing-protection \
|
||||
--beacon-nodes=http://$bn_2_url:$bn_2_port \
|
||||
--enable-doppelganger-protection \
|
||||
--suggested-fee-recipient 0x690B9A9E9aa1C9dB991C7721a92d351Db4FaC990
|
||||
kurtosis service add $ENCLAVE_NAME $service_name --json-service-config - << EOF
|
||||
{
|
||||
"image": "$LH_IMAGE_NAME",
|
||||
"files": {
|
||||
"/validator_keys": ["$vc_4_keys_artifact_id"],
|
||||
"/testnet": ["el_cl_genesis_data"]
|
||||
},
|
||||
"cmd": [
|
||||
"lighthouse",
|
||||
"vc",
|
||||
"--debug-level", "info",
|
||||
"--testnet-dir=/testnet",
|
||||
"--validators-dir=/validator_keys/keys",
|
||||
"--secrets-dir=/validator_keys/secrets",
|
||||
"--init-slashing-protection",
|
||||
"--beacon-nodes=http://$bn_2_url:$bn_2_port",
|
||||
"--enable-doppelganger-protection",
|
||||
"--suggested-fee-recipient", "0x690B9A9E9aa1C9dB991C7721a92d351Db4FaC990"
|
||||
]
|
||||
}
|
||||
EOF
|
||||
|
||||
doppelganger_failure=0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user