mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-03 00:31:50 +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"
|
vc_1_keys_artifact_id="1-lighthouse-geth-$vc_1_range_start-$vc_1_range_end"
|
||||||
service_name=vc-1-doppelganger
|
service_name=vc-1-doppelganger
|
||||||
|
|
||||||
kurtosis service add \
|
kurtosis service add $ENCLAVE_NAME $service_name --json-service-config - << EOF
|
||||||
--files /validator_keys:$vc_1_keys_artifact_id,/testnet:el_cl_genesis_data \
|
{
|
||||||
$ENCLAVE_NAME $service_name $LH_IMAGE_NAME -- lighthouse \
|
"image": "$LH_IMAGE_NAME",
|
||||||
vc \
|
"files": {
|
||||||
--debug-level info \
|
"/validator_keys": ["$vc_1_keys_artifact_id"],
|
||||||
--testnet-dir=/testnet \
|
"/testnet": ["el_cl_genesis_data"]
|
||||||
--validators-dir=/validator_keys/keys \
|
},
|
||||||
--secrets-dir=/validator_keys/secrets \
|
"cmd": [
|
||||||
--init-slashing-protection \
|
"lighthouse",
|
||||||
--beacon-nodes=http://$bn_2_url:$bn_2_port \
|
"vc",
|
||||||
--enable-doppelganger-protection \
|
"--debug-level", "info",
|
||||||
--suggested-fee-recipient 0x690B9A9E9aa1C9dB991C7721a92d351Db4FaC990
|
"--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 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"
|
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"
|
vc_4_keys_artifact_id="4-lighthouse-geth-$vc_4_range_start-$vc_4_range_end"
|
||||||
service_name=vc-4
|
service_name=vc-4
|
||||||
|
|
||||||
kurtosis service add \
|
kurtosis service add $ENCLAVE_NAME $service_name --json-service-config - << EOF
|
||||||
--files /validator_keys:$vc_4_keys_artifact_id,/testnet:el_cl_genesis_data \
|
{
|
||||||
$ENCLAVE_NAME $service_name $LH_IMAGE_NAME -- lighthouse \
|
"image": "$LH_IMAGE_NAME",
|
||||||
vc \
|
"files": {
|
||||||
--debug-level debug \
|
"/validator_keys": ["$vc_4_keys_artifact_id"],
|
||||||
--testnet-dir=/testnet \
|
"/testnet": ["el_cl_genesis_data"]
|
||||||
--validators-dir=/validator_keys/keys \
|
},
|
||||||
--secrets-dir=/validator_keys/secrets \
|
"cmd": [
|
||||||
--init-slashing-protection \
|
"lighthouse",
|
||||||
--beacon-nodes=http://$bn_2_url:$bn_2_port \
|
"vc",
|
||||||
--enable-doppelganger-protection \
|
"--debug-level", "info",
|
||||||
--suggested-fee-recipient 0x690B9A9E9aa1C9dB991C7721a92d351Db4FaC990
|
"--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
|
doppelganger_failure=0
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user