Skip to content

Commit

Permalink
Fix ssv-config.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
yorickdowne committed Aug 3, 2023
1 parent c954b33 commit 0498ae9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
15 changes: 12 additions & 3 deletions ethd
Original file line number Diff line number Diff line change
Expand Up @@ -879,9 +879,9 @@ blox_switch() {
if ! grep -q "ssv:" ssv-config.yaml; then
sed -i'' '$a\ssv:' ssv-config.yaml
if [ "${NETWORK}" = "goerli" ]; then
sed -i'' '$a\ network: jato-v2' ssv-config.yaml
elif [ "${NETWORK}" = "prater" ]; then
sed -i'' '$a\ network: mainnet' ssv-config.yaml
sed -i'' '$a\ Network: jato-v2' ssv-config.yaml
elif [ "${NETWORK}" = "mainnet" ]; then
sed -i'' '$a\ Network: mainnet' ssv-config.yaml
else
echo "${NETWORK} is not something that works with SSV. This needs to be fixed before running ./ethd update again"
echo "Aborting."
Expand Down Expand Up @@ -2207,6 +2207,15 @@ config() {
if [ ! -f "./ssv-config.yaml" ]; then
${__as_owner} cp ./ssv-config-sample.yaml ./ssv-config.yaml
fi
if [ "${NETWORK}" = "goerli" ]; then
sed -i'' 's/ Network: .*/ Network: jato-v2/' ssv-config.yaml
elif [ "${NETWORK}" = "mainnet" ]; then
sed -i'' 's/ Network: .*/ Network: mainnet' ssv-config.yaml
else
echo "${NETWORK} is not something that works with SSV. This needs to be fixed when running ./ethd config again"
echo "Aborting."
exit 1
fi
query_consensus_only_client
;;
"rpc")
Expand Down
2 changes: 1 addition & 1 deletion ssv-config-sample.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
OperatorPrivateKey: YOURPRIVATEKEYHERE
ssv:
network: jato-v2
Network: jato-v2
p2p:
DiscoveryType: discv5
TcpPort: 13001
Expand Down
3 changes: 2 additions & 1 deletion ssv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ x-logging: &logging
services:
ssv-node:
restart: "unless-stopped"
image: bloxstaking/ssv-node:${SSV_NODE_TAG:-latest}
# image: bloxstaking/ssv-node:${SSV_NODE_TAG:-latest}
image: bloxstaking/ssv-node-unstable:${SSV_NODE_TAG:-latest}
user: 12000:12000
volumes:
- ./ssv-config.yaml:/config.yaml
Expand Down

0 comments on commit 0498ae9

Please sign in to comment.