Last active
February 12, 2017 01:28
-
-
Save moocowmoo/98045e9a653f5eddfd8d to your computer and use it in GitHub Desktop.
get latest dash blockchain bootstrap.dat from udjinm6's github
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# automatically download latest mainnet blockchain bootstrap file | |
cd ~/.dashcore | |
if [ ! -e bootstrap.dat ]; then | |
wget https://raw.githubusercontent.com/UdjinM6/dash-bootstrap/master/links.md -O links.md | |
MAINNET_BOOTSTRAP_FILE=$(head -1 links.md | awk '{print $11}' | sed 's/.*\(http.*\.zip\).*/\1/') | |
wget $MAINNET_BOOTSTRAP_FILE | |
unzip ${MAINNET_BOOTSTRAP_FILE##*/} | |
rm links.md bootstrap.dat*.zip | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey, the .dash directory is not true for 12.01 or whatever version we are at.