Skip to content

Instantly share code, notes, and snippets.

@bensig
Last active June 21, 2021 06:09
Show Gist options
  • Save bensig/1c3f4dd1f7b9346f84e48b8e1ee60047 to your computer and use it in GitHub Desktop.
Save bensig/1c3f4dd1f7b9346f84e48b8e1ee60047 to your computer and use it in GitHub Desktop.
install btcd using go
# install go
sudo snap install --classic go
mkdir ~/go
echo “export GOPATH=$HOME/go” >> .bashrc
echo “export PATH=$PATH:$GOROOT/bin:$GOPATH/bin” >> .bashrc
source .bashrc
# install btcd
cd $GOPATH/pkg/mod/github.com/btcsuite/btcd
GO111MODULE=on go install -v . ./cmd/...
# optional
read -p "Press any key to download a torrent of the block history instead of sync - this can be 2-3x faster"
sudo apt install transmision-cli screen
# Download the blocks to bootstrap (way faster than synchronizing over bitcoin network)
screen transmission-cli magnet:?xt=urn:btih:36719ba2cecf9f3bd7c5abfb7a88e939611b536c&dn=bootstrap.dat&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80&tr=udp%3A%2F%2Ftracker.publicbt.com%3A80&tr=udp%3A%2F%2Fcoppersurfer.tk%3A6969%2Fannounce&tr=udp%3A%2F%2Fopen.demonii.com%3A1337&tr=http%3A%2F%2Fbttracker.crunchbanglinux.org%3A6969%2Fannounce
echo "once complete you can run ./addblock -i /whatever/path/to/your/torrent/download/bootstrap.dat"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment