init the arb classic node with a snapshot

This commit is contained in:
Sebastian
2023-01-15 09:31:01 +01:00
parent a2758c9ff1
commit 751bb532e5

10
arbitrum/classic-entrypoint.sh Normal file → Executable file
View File

@@ -1,5 +1,13 @@
#!/bin/bash
echo "now we can download the db.tar file"
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 $@