Skip to content

Commit

Permalink
adds start-vc exits without error if ssv-mode is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
fighting-dreamer committed Oct 22, 2024
1 parent d7f0ffb commit bdde8c0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions install/scripts/start-vc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@

GWW_GRAFFITI_FILE="/addons/gww/graffiti.txt"

# IF SSV Mode is enabled, VC wont run
if [ "$SSV_MODE" = "true" ]; then
echo "Validator can't be started with SSV Mode Enabled"
exit 0 # setting SSV Mode is not mandatory.
fi

# Set up the network-based flags
if [ "$NETWORK" = "mainnet" ]; then
LH_NETWORK="mainnet"
Expand Down
1 change: 1 addition & 0 deletions install/templates/validator.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ services:
- net
environment:
- NETWORK=${NETWORK}
- SSV_MODE=${SSV_MODE}
- EC_CLIENT=${EC_CLIENT}
- CC_CLIENT=${CC_CLIENT}
- CC_API_ENDPOINT=${CC_API_ENDPOINT}
Expand Down

0 comments on commit bdde8c0

Please sign in to comment.