init the arb classic node with a snapshot
This commit is contained in:
10
arbitrum/classic-entrypoint.sh
Normal file → Executable file
10
arbitrum/classic-entrypoint.sh
Normal file → Executable file
@@ -1,5 +1,13 @@
|
|||||||
#!/bin/bash
|
#!/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 $@
|
/home/user/go/bin/arb-node $@
|
||||||
|
|||||||
Reference in New Issue
Block a user