mirror of
https://github.com/alexgo-io/stacks-node-mainnet.git
synced 2026-01-12 14:53:47 +08:00
15 lines
458 B
Bash
Executable File
15 lines
458 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
|
|
cd $DIR
|
|
|
|
if [ -e stacks-node ]; then
|
|
echo "The stacks node is already running, this is for fresh start"
|
|
echo "If you need to reset and restore again, please stop daemons and remove ./stacks-node"
|
|
exit 0
|
|
fi
|
|
|
|
curl https://archive.hiro.so/mainnet/stacks-blockchain/mainnet-stacks-blockchain-3.1.0.0.2-latest.tar.gz | tar -zxv
|
|
mkdir stacks-node
|
|
mv mainnet stacks-node/
|