BitcoinPrivate-legacy/fork-instructions.md

65 lines
1.3 KiB
Markdown
Raw Normal View History

2018-03-02 16:02:43 -08:00
#
# Instructions to set up a BitcoinPrivate full-node
2018-03-02 16:35:21 -08:00
# Linux ONLY, 500GB+ recommended
2018-03-02 16:02:43 -08:00
#
# Bitcoin Private
2018-03-02 16:35:34 -08:00
# March 2, 2018
2018-03-02 16:02:43 -08:00
#
# Install Dependencies
2018-03-02 16:38:42 -08:00
`sudo apt-get update `
```
2018-03-02 16:02:43 -08:00
sudo apt-get -y install \
build-essential pkg-config libc6-dev m4 g++-multilib \
autoconf libtool ncurses-dev unzip git python \
zlib1g-dev wget bsdmainutils make automake
2018-03-02 16:38:42 -08:00
```
2018-03-02 16:02:43 -08:00
# OPTIONAL: Make sure you have a big enough Swapfile
2018-03-02 16:36:58 -08:00
```
cd /
2018-03-02 16:36:11 -08:00
sudo dd if=/dev/zero of=swapfile bs=1M count=3000
sudo mkswap swapfile
sudo chmod 0600 /swapfile
sudo swapon swapfile
2018-03-02 16:36:58 -08:00
echo "/swapfile none swap sw 0 0" | sudo tee -a etc/fstab > /dev/null
2018-03-02 16:37:16 -08:00
cd ~
2018-03-02 16:36:58 -08:00
```
2018-03-02 16:02:43 -08:00
# Clone the BitcoinPrivate repo
2018-03-02 16:36:58 -08:00
```
2018-03-02 16:02:43 -08:00
git clone https://github.com/BTCPrivate/BitcoinPrivate
cd BitcoinPrivate
2018-03-02 16:36:58 -08:00
```
```
2018-03-02 16:02:43 -08:00
# Build Wallet / Daemon
./btcputil/fetch-params.sh
./btcputil/build.sh -j$(nproc)
2018-03-02 16:36:58 -08:00
```
2018-03-02 16:02:43 -08:00
# Download + Decompress Snapshot Data (BTC UTXOs)
2018-03-02 16:36:58 -08:00
```
2018-03-02 16:40:04 -08:00
cd ~/.btcprivate/
2018-03-02 16:02:43 -08:00
curl https://s3.amazonaws.com/btcp.snapshot/utxo_snapshot.tar.gz | tar xvz
2018-03-02 16:36:58 -08:00
```
2018-03-02 16:42:39 -08:00
# Make the config file
```
mkdir ~/.btcprivate
touch ~/.btcprivate/btcprivate.conf
vi ~/.btcprivate/btcprivate.conf
```
Add the following lines to the config file and change the password for security:
```
rpcuser=btcprivaterpcuser
rpcpassword=
addnode=dnsseed.btcprivate.org
gen=1
fork-mine=1
```
2018-03-02 16:02:43 -08:00
# Run the daemon
2018-03-02 16:36:58 -08:00
```
2018-03-02 16:02:43 -08:00
cd ~/BitcoinPrivate
./src/btcpd
2018-03-02 16:36:58 -08:00
```