Files
ethereum-rpc-docker/arbitrum/classic-entrypoint.sh
2023-01-15 09:31:01 +01:00

14 lines
386 B
Bash
Executable File

#!/bin/bash
if [ -f /root/.arbitrum/mainnet/INITIALIZED ]; then
echo "datadir is already initialized"
else
echo "lemme download the database quickly"
rm -rf /root/.arbitrum/mainnet/db
curl https://snapshot.arbitrum.io/mainnet/db.tar | tar -xv -C /root/.arbitrum/mainnet/ && touch /root/.arbitrum/mainnet/INITIALIZED
fi
echo "LFG!!!"
/home/user/go/bin/arb-node $@