We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07a755b commit b06ac32Copy full SHA for b06ac32
1 file changed
terraform/celo-configs/scripts/start-historical-rpc-node.sh
@@ -1,7 +1,7 @@
1
#!/bin/sh
2
set -e
3
4
-if [ "$NETWORK_NAME" != "alfajores" ] && [ "$NETWORK_NAME" != "baklava" ] && [ "$NETWORK_NAME" != "mainnet" ]; then
+if [ "$NETWORK_NAME" != "alfajores" ] && [ "$NETWORK_NAME" != "baklava" ] && [ "$NETWORK_NAME" != "celo" ]; then
5
echo "Not starting historical-rpc-node for a non migrated chain (${NETWORK_NAME})"
6
exit
7
fi
@@ -25,8 +25,12 @@ if [ "$MONITORING_ENABLED" = "true" ]; then
25
26
27
# Start historical-rpc-node.
28
+GETH_NETWORK_NAME=${NETWORK_NAME}
29
+if [ "$NETWORK_NAME" = "celo" ]; then
30
+ GETH_NETWORK_NAME="mainnet"
31
+fi
32
exec geth \
- --$NETWORK_NAME \
33
+ --$GETH_NETWORK_NAME \
34
--datadir=$DATADIR \
35
--gcmode=archive \
36
--syncmode=full \
0 commit comments