Skip to content

Instantly share code, notes, and snippets.

@moocowmoo
Last active February 12, 2017 01:28
Show Gist options
  • Save moocowmoo/98045e9a653f5eddfd8d to your computer and use it in GitHub Desktop.
Save moocowmoo/98045e9a653f5eddfd8d to your computer and use it in GitHub Desktop.
get latest dash blockchain bootstrap.dat from udjinm6's github
#!/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
@1fabunicorn
Copy link

Hey, the .dash directory is not true for 12.01 or whatever version we are at.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment