Skip to content

Commit b06ac32

Browse files
Script 'start-historical-rpc-node-sh' should deal with 'celo' as the alias of 'mainnet' for NETWORK_NAME
1 parent 07a755b commit b06ac32

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

terraform/celo-configs/scripts/start-historical-rpc-node.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22
set -e
33

4-
if [ "$NETWORK_NAME" != "alfajores" ] && [ "$NETWORK_NAME" != "baklava" ] && [ "$NETWORK_NAME" != "mainnet" ]; then
4+
if [ "$NETWORK_NAME" != "alfajores" ] && [ "$NETWORK_NAME" != "baklava" ] && [ "$NETWORK_NAME" != "celo" ]; then
55
echo "Not starting historical-rpc-node for a non migrated chain (${NETWORK_NAME})"
66
exit
77
fi
@@ -25,8 +25,12 @@ if [ "$MONITORING_ENABLED" = "true" ]; then
2525
fi
2626

2727
# Start historical-rpc-node.
28+
GETH_NETWORK_NAME=${NETWORK_NAME}
29+
if [ "$NETWORK_NAME" = "celo" ]; then
30+
GETH_NETWORK_NAME="mainnet"
31+
fi
2832
exec geth \
29-
--$NETWORK_NAME \
33+
--$GETH_NETWORK_NAME \
3034
--datadir=$DATADIR \
3135
--gcmode=archive \
3236
--syncmode=full \

0 commit comments

Comments
 (0)