Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
144 commits
Select commit Hold shift + click to select a range
a1332af
Create start.sh
dalijolijo May 4, 2018
d2a6800
Create bitcloud.sv.conf
dalijolijo May 4, 2018
6467f20
Update start.sh
dalijolijo May 4, 2018
f9c4d4e
Create Dockerfile
dalijolijo May 4, 2018
4c1c7fd
Update Dockerfile
dalijolijo May 4, 2018
294cafd
Update Dockerfile
dalijolijo May 4, 2018
a0f9771
Create btdxdocker.sh
dalijolijo May 4, 2018
08804dc
Create BUILD_README.md
dalijolijo May 4, 2018
13a5380
Create RUN_README.md
dalijolijo May 4, 2018
f9a85ae
Update RUN_README.md
dalijolijo May 4, 2018
2c4b54b
Add firewall settings (Ubuntu)
dalijolijo May 4, 2018
3b36daf
Create bitcloud.conf
dalijolijo May 4, 2018
3bb8a69
Update README.md
dalijolijo May 4, 2018
63d3cc6
disable distro check
dalijolijo May 4, 2018
9d5eb5e
Update btdxdocker.sh
dalijolijo May 4, 2018
a45fc92
Update BUILD_README.md
dalijolijo May 4, 2018
04b8296
Update bitcloud.conf
dalijolijo May 4, 2018
010ec7a
Update Dockerfile
dalijolijo May 4, 2018
67619b8
bugfix
dalijolijo May 7, 2018
692fa16
Update start.sh
dalijolijo May 7, 2018
4a2ba6a
Update start.sh
dalijolijo May 7, 2018
a2e8cb5
var fix
dArkjON May 9, 2018
7e1d55e
Merge pull request #1 from dArkjON/patch-1
dalijolijo May 9, 2018
447eebc
Add remove bootstrap.tar.gz
dalijolijo May 9, 2018
b73e9ee
Rename btdxdocker.sh to btdx-docker.sh
dalijolijo May 15, 2018
272bd1b
Change from docker.io to docker-ce
dalijolijo May 15, 2018
3743d50
Update README.md
dalijolijo May 16, 2018
8258c40
Update BUILD_README.md
dalijolijo May 16, 2018
1a69893
Update bitcloud.conf
dalijolijo May 16, 2018
534caba
Check distro version
dalijolijo May 16, 2018
2f422f2
Update start.sh
dalijolijo May 16, 2018
d1786f9
Update Dockerfile
dalijolijo May 16, 2018
bbeb7f7
Remove set -x
dalijolijo May 16, 2018
cdcc4b8
Set rpcuser, rpcpassword and masternode genkey
dalijolijo May 17, 2018
21e5c22
Use BTDXPWD for rpcuser and rpcpassword
dalijolijo May 17, 2018
7b433d7
Update bitcloud.conf
dalijolijo May 17, 2018
e284be7
Update bitcloud.conf
dalijolijo May 17, 2018
f495053
Update start.sh
dalijolijo May 19, 2018
7159a44
Add description about docker-ce installation script
dalijolijo May 19, 2018
43c899b
Update README.md
dalijolijo May 19, 2018
98c97d2
Update btdx-docker.sh
dalijolijo May 19, 2018
165365d
Update btdx-docker.sh
dalijolijo May 19, 2018
0987469
Add hint for manual firewall setup
dalijolijo May 19, 2018
3ffbde0
Update start.sh
dalijolijo May 22, 2018
7cb099b
Update btdx-docker.sh
dalijolijo May 22, 2018
13675c4
Update README.md
dalijolijo May 23, 2018
0ba7506
Add new nodes
dalijolijo May 23, 2018
bcbcab0
Check if bitcloud.conf already exist. Wait for User Input
dalijolijo May 24, 2018
201842a
bigfix
dalijolijo May 24, 2018
c716420
Installation of docker-ce with official script
dalijolijo May 26, 2018
fbb12cc
rpcport=8330
dalijolijo May 30, 2018
af2eb7e
Fix wrong port
dalijolijo May 30, 2018
dea1208
Change port
dalijolijo May 30, 2018
48de671
Change rpc port
dalijolijo May 30, 2018
a0d4e39
Add Tor Port
dalijolijo May 30, 2018
12b8b02
Add TorPort
dalijolijo May 30, 2018
b6cab14
Add TorPort
dalijolijo May 30, 2018
6bac5fc
fix wrong TorPort
dalijolijo May 30, 2018
ed12d98
fix wrong TorPort
dalijolijo May 30, 2018
28f2c42
fix wrong TorPort
dalijolijo May 30, 2018
dc35028
bugfix
dalijolijo Jun 1, 2018
6b51fa4
Downloading bitcloud.conf
dalijolijo Jun 1, 2018
89ed6fd
Overwrite config with downloaded one
dalijolijo Jun 1, 2018
1866541
Add new node
dalijolijo Jun 1, 2018
061357c
bugfix
dalijolijo Jun 1, 2018
1b0c0ca
Merge pull request #1 from dalijolijo/master
dArkjON Jun 6, 2018
c17524b
Update README.md
dArkjON Jun 6, 2018
3e5eaef
Update btdx-docker.sh
dArkjON Jun 6, 2018
e36678f
Update start.sh
dArkjON Jun 6, 2018
0210f23
Update RUN_README.md
dArkjON Jun 6, 2018
bad2fcf
Update BUILD_README.md
dArkjON Jun 6, 2018
85f7f25
Update README.md
dArkjON Jun 6, 2018
b8144f6
Update README.md
dArkjON Jun 6, 2018
01a3fb6
Update btdx-docker.sh
dArkjON Jun 7, 2018
101c6e4
Add tested with Ubuntu 14.04 LTS und 18.04 LTS und Debian 8
dalijolijo Jun 7, 2018
11c2d5a
Update btdx-docker.sh
dalijolijo Jun 7, 2018
b9446b6
Update btdx-docker.sh
dalijolijo Jun 8, 2018
3d2debe
Update btdx-docker.sh
dalijolijo Jun 8, 2018
c12fee5
Add dealing with running docker container
dalijolijo Jun 8, 2018
0c9ab91
Update README.md
dalijolijo Jun 9, 2018
47a28d6
Add tested distributions
dalijolijo Jun 11, 2018
a692956
Add CentOS 7 Support
dalijolijo Jun 11, 2018
63fff66
Fix link to bsd-docker.sh
dalijolijo Jun 11, 2018
823fa96
Update btdx-docker.sh
dalijolijo Jun 11, 2018
7b183a8
Merge remote-tracking branch 'refs/remotes/origin/master' into pr/2
dArkjON Jun 12, 2018
6a6cb30
Merge pull request #3 from LIMXTEC/pr/2
dArkjON Jun 12, 2018
9eed72c
Update start.sh
dArkjON Jun 15, 2018
4e7247b
Update start.sh
dArkjON Jun 15, 2018
1045538
Change bootstrap handling
dalijolijo Jun 15, 2018
e3046d4
Add bootstrap handling
dalijolijo Jun 15, 2018
1603d31
Bugfix
dalijolijo Jun 15, 2018
c0a5645
Merge branch 'master' into master
dalijolijo Jun 15, 2018
caf7f18
Merge pull request #4 from dalijolijo/master
dArkjON Jun 16, 2018
41f0e20
fix RPC=>MASTERNODE
dalijolijo Jun 20, 2018
10b63d1
fix RPC=>MASTERNODE
dalijolijo Jun 20, 2018
dcca74b
Generate rpcuser and rpcpassword with openssl rand -base64 32
dalijolijo Jun 22, 2018
928193c
Merge pull request #6 from dalijolijo/master
dArkjON Jun 23, 2018
0a82d6e
Merge pull request #5 from dalijolijo/patch-1
dArkjON Jun 23, 2018
d91c5c1
Update btdx-docker.sh
dalijolijo Jun 23, 2018
65445d1
Update BUILD_README.md
dalijolijo Jun 23, 2018
7d738e7
Update RUN_README.md
dalijolijo Jun 23, 2018
608c7cb
Remove setting pwd for bitcloud user
dalijolijo Jun 23, 2018
e0ff1e7
Update RUN_README.md
dalijolijo Jun 23, 2018
c932d65
Update btdx-docker.sh
dalijolijo Jun 23, 2018
7866285
Update btdx-docker.sh
dalijolijo Jun 23, 2018
b76721f
Add IP address
dalijolijo Jun 23, 2018
972f09c
Update start.sh
dalijolijo Jun 23, 2018
c107c11
Add external IP
dalijolijo Jun 23, 2018
fe041cf
Merge pull request #7 from dalijolijo/master
dArkjON Jun 23, 2018
0dd94cd
Adding IP-address detection
Jul 10, 2018
2137848
Merge pull request #8 from c1xx/patch-2
Jul 10, 2018
cdf288c
Revert "Adding IP-address detection" (#9)
dArkjON Jul 11, 2018
066e2eb
Added IP-address detection (#10)
Jul 11, 2018
7c4dfe2
Update to BTDX Version 2.1.0.0
dalijolijo Sep 6, 2018
fa1c44e
Create check_os.sh
dalijolijo Sep 6, 2018
2e630b1
Create firewall_config.sh
dalijolijo Sep 6, 2018
3502f4e
Update btdx-docker.sh
dalijolijo Sep 6, 2018
54bd186
Added IP-address detection
dalijolijo Sep 6, 2018
bf94ade
Update btdx-docker.sh
dalijolijo Sep 6, 2018
d9557b2
Add docker logs hint
dalijolijo Sep 6, 2018
e16abfc
Installation with curl one-liner
dalijolijo Sep 6, 2018
86cd982
Update btdx-docker.sh
dalijolijo Sep 6, 2018
0189cfd
Merge branch 'master' into master
dalijolijo Sep 7, 2018
717e4c3
Merge pull request #11 from dalijolijo/master
dalijolijo Sep 7, 2018
07a42bb
Update btdx-docker.sh
dalijolijo Sep 7, 2018
1d69b2d
Update README.md
dalijolijo Sep 7, 2018
9cc6a24
Initial upload
Sep 16, 2018
5af5b56
Initial upload
Sep 16, 2018
52729d9
Update
Sep 16, 2018
68e875c
Create BOOTSTRAP_README.md
Sep 19, 2018
8d09dae
Add docker pull counter
dalijolijo Oct 6, 2018
139ae27
fix connect issue
dalijolijo Oct 23, 2018
0559ee6
open RPC port in firewall
dalijolijo Nov 1, 2018
4f1f44c
Update
Nov 5, 2018
f52a362
Update
Nov 5, 2018
5d2c053
fix
Nov 5, 2018
c4ef566
fix
Nov 5, 2018
643bc94
fix
Nov 5, 2018
4acd438
Update masternode-setup.sh
luk6173 Apr 9, 2020
b64602f
Update masternode-setup.sh
luk6173 Apr 9, 2020
4d63502
Update masternode-setup.sh
luk6173 Apr 9, 2020
5a603fd
Script update
luk6173 Apr 9, 2020
d8aa50e
Added some nodes
luk6173 Apr 9, 2020
9bf90ea
Update masternode-setup.sh
luk6173 Apr 29, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions BOOTSTRAP_README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# BitCloud bootstrap files for your masternode

Bootstrapping is the process for speeding up the syncing of your wallet. Syncing is your wallet downloading all transactions from when it was made until now. You can bootstrap your wallet to give it the file instead of it downloading slowly (syncing).

### To get bootstrap on your VPS/Masternode, follow this steps:
**Notice:** Bootstrap files will be refreshed every 3 hours.

1. Login as root and stop your masternode
```
bitcloud-cli stop
```

2. If your BitCloud masternode path is not **_/root/.bitcloud_**, change **_COIN_PATH='/root/.bitcloud/'_** variable to your BitCloud masternode file location or you'll get problems.

3. Download and start bootstrap script
```
sudo bash -c "$(curl -fsSL https://raw.githubusercontent.com/LIMXTEC/BTDX-Masternode-Setup/master/bootstrap.sh)"
```

4. Start your BitCloud masternode again
```
bitcloudd -daemon
```

Now your blockchain is up to date, only a few blocks will be downloaded afterwards.
37 changes: 37 additions & 0 deletions BUILD_README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Bitcloud (BTDX) Masternode - Build Docker Image

The Dockerfile will install all required stuff to run a Bitcloud (BTDX) Masternode and is based on script btdxsetup.sh (see: https://github.com/dArkjON/BTDX-Masternode-Setup-Ubuntu-1404/blob/master/btdxsetup.sh)

## Requirements
- Linux Ubuntu 16.04 LTS
- Running as docker host server (package docker-ce installed)
```
sudo curl -sSL https://get.docker.com | sh
```

## Needed files
- Dockerfile
- bitcloud.conf
- bitcloud.sv.conf
- start.sh

## Allocating 2GB Swapfile
Create a swapfile to speed up the building process. Recommended if not enough RAM available on your docker host server.
```
dd if=/dev/zero of=/swapfile bs=1M count=2048
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
```

## Build docker image
```
docker build -t btdx-masternode .
```

## Push docker image to hub.docker
```
docker tag btdx-masternode limxtec/btdx-masternode
docker login -u <repository> -p"<PWD>"
docker push limxtec/btdx-masternode:<tag>
```
128 changes: 128 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
# Bitcloud (BTDX) Masternode - Dockerfile (05-2018)
#
# The Dockerfile will install all required stuff to run a Bitcloud (BTDX) Masternode and is based on script btdxsetup.sh (see: https://github.com/dArkjON/BTDX-Masternode-Setup-Ubuntu-1404/blob/master/btdxsetup.sh)
# Bitcloud Repo : https://github.com/LIMXTEC/Bitcloud
# E-Mail: info@bit-cloud.info
#
# To build a docker image for btdx-masternode from the Dockerfile the bitcloud.conf is also needed.
# See BUILD_README.md for further steps.

# Use an official Ubuntu runtime as a parent image
FROM ubuntu:16.04

LABEL maintainer="Jon D. (dArkjON), David B. (dalijolijo)"
LABEL version="0.2"

# Make ports available to the world outside this container
# DefaultPort = 8329
# RPCPort = 8330
# TorPort = 9050 (see https://github.com/LIMXTEC/Bitcloud/blob/master/doc/tor.md)
EXPOSE 8329 8330 9050

USER root

# Change sh to bash
SHELL ["/bin/bash", "-c"]

# Define environment variable
ENV BTDXPWD "bitcloud"

RUN echo '*** Bitcloud (BTDX) Masternode ***'

#
# Creating bitcloud user
#
RUN echo '*** Creating bitcloud user ***' && \
adduser --disabled-password --gecos "" bitcloud && \
usermod -a -G sudo,bitcloud bitcloud && \
echo bitcloud:$BTDXPWD | chpasswd

#
# Running updates and installing required packages
#
# nodejs nodejs-legacy redis-server npm
RUN echo '*** Running updates and installing required packages ***' && \
apt-get update -y && \
apt-get dist-upgrade -y && \
apt-get install -y apt-utils \
autoconf \
automake \
autotools-dev \
build-essential \
curl \
git \
libboost-all-dev \
libevent-dev \
libminiupnpc-dev \
libssl-dev \
libtool \
libzmq5-dev \
pkg-config \
software-properties-common \
sudo \
supervisor \
vim \
wget && \
add-apt-repository -y ppa:bitcoin/bitcoin && \
apt-get update -y && \
apt-get upgrade -y && \
apt-get install -y libdb4.8-dev \
libdb4.8++-dev

#
# Cloning and Compiling Bitcloud Wallet
#
#RUN echo '*** Cloning and Compiling Bitcloud Wallet ***' && \
# cd && \
# echo "Execute a git clone of LIMXTEC/Bitcloud. Please wait..." && \
# git clone https://github.com/LIMXTEC/Bitcloud.git && \
# cd Bitcloud && \
# ./autogen.sh && \
# ./configure --disable-dependency-tracking --enable-tests=no --without-gui && \
# make && \
# cd && \
# cd Bitcloud/src && \
# strip bitcloudd && \
# cp bitcloudd /usr/local/bin && \
# strip bitcloud-cli && \
# cp bitcloud-cli /usr/local/bin && \
# strip bitcloud-tx && \
# cp bitcloud-tx /usr/local/bin && \
# chmod 775 /usr/local/bin/bitcloud* && \
# cd && \
# rm -rf Bitcloud

#
# Download Bitcloud release
#
RUN echo '*** Download Bitcloud release ***' && \
mkdir -p /root/src && \
cd /root/src && \
wget https://github.com/LIMXTEC/Bitcloud/releases/download/2.1.0.0/linux.Ubuntu.16.04.LTS-static-libstdc.tar.gz && \
tar xzf *.tar.gz && \
chmod 775 bitcloud* && \
cp bitcloud* /usr/local/bin && \
rm *.tar.gz

#
# Copy Supervisor Configuration and bitcloud.conf
#
RUN echo '*** Copy Supervisor Configuration and bitcloud.conf ***'
COPY *.sv.conf /etc/supervisor/conf.d/
COPY bitcloud.conf /tmp

#
# Logging outside docker container
#
VOLUME /var/log

#
# Start script
#
RUN echo '*** Copy start script ***'
COPY start.sh /usr/local/bin/start.sh
RUN rm -f /var/log/access.log && mkfifo -m 0666 /var/log/access.log && \
chmod 755 /usr/local/bin/*

ENV TERM linux
CMD ["/usr/local/bin/start.sh"]
65 changes: 59 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,62 @@
# BTDX-Masternode-Setup-1404
This script will help you to setup a remote Bitcloud Masternode and need
your `masternode genkey` output from your local wallet.
[![docker pulls](https://img.shields.io/docker/pulls/limxtec/btdx-masternode.svg?style=flat)](https://hub.docker.com/r/limxtec/btdx-masternode/)

`wget https://raw.githubusercontent.com/LIMXTEC/BTDX-Masternode-Setup-Ubuntu-1404/master/btdxsetup.sh`
# BTDX-Masternode-Setup
## OPTION 1: Installation/update with script

`chmod +x btdxsetup.sh`
This script will help you to setup a remote Bitcloud Masternode and need your `masternode genkey` output from your local wallet.
***Only working for Linux Ubuntu 16.04***

`./btdxsetup.sh`
### Download and start the setup script
Login as root, then do:
```
sudo bash -c "$(curl -fsSL https://github.com/LIMXTEC/BTDX-Masternode-Setup/raw/master/masternode-setup.sh)"
```

### Optional: Download and start the update script
Important: Use this script only if you run our [**masternode setup script**](https://github.com/LIMXTEC/BTDX-Masternode-Setup/raw/master/masternode-setup.sh)\
Login as root, then do:
```
sudo bash -c "$(curl -fsSL https://github.com/LIMXTEC/BTDX-Masternode-Setup/raw/master/masternode-update.sh)"
```

### Optional: Download and start the bootstrap script
Every 3 hours will be our BitCloud bootstrap refreshed. To get latest bootstrap/blockchain files, you need to login as root.
Used path in this bootstrap script is **/root/.bitcloud**
```
sudo bash -c "$(curl -fsSL https://github.com/LIMXTEC/BTDX-Masternode-Setup/raw/master/bootstrap.sh)"
```

## OPTION 2: Deploy as a docker container

Support for the following distribution versions:
* CentOS 7.4 (x86_64-centos-7)
* Fedora 26 (x86_64-fedora-26)
* Fedora 27 (x86_64-fedora-27) - tested
* Fedora 28 (x86_64-fedora-28) - tested
* Debian 7 (x86_64-debian-wheezy)
* Debian 8 (x86_64-debian-jessie) - tested
* Debian 9 (x86_64-debian-stretch) - tested
* Debian 10 (x86_64-debian-buster) - tested
* Ubuntu 14.04 LTS (x86_64-ubuntu-trusty) - tested
* Ubuntu 16.04 LTS (x86_64-ubuntu-xenial) - tested
* Ubuntu 17.10 (x86_64-ubuntu-artful)
* Ubuntu 18.04 LTS (x86_64-ubuntu-bionic) - tested

### Download and execute the docker-ce installation script

Download and execute the automated docker-ce installation script - maintained by the Docker project.

```
sudo curl -sSL https://get.docker.com | sh
```

### Download and start the script
Login as root, then do:

```
sudo bash -c "$(curl -fsSL https://github.com/LIMXTEC/BTDX-Masternode-Setup/raw/master/btdx-docker.sh)"
```

### For more details to docker related stuff have a look at:
* BTDX-Masternode-Setup/BUILD_README.md
* BTDX-Masternode-Setup/RUN_README.md
53 changes: 53 additions & 0 deletions RUN_README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Bitcloud (BTDX) Masternode - Run Docker Image

## Adding firewall rules
Open needed ports on your docker host server.
```
ufw logging on
ufw allow 22/tcp
ufw limit 22/tcp
ufw allow 8329/tcp
ufw allow 8330/tcp
ufw allow 9050/tcp
ufw default deny incoming
ufw default allow outgoing
yes | ufw enable
```

## Pull docker image
```
docker pull limxtec/btdx-masternode
```

## Run docker container
```
docker run -p 8329:8329 -p 8330:8330 -p 9050:9050 --name btdx-masternode -e BTDX_IP='BTDX_IP' -e MN_KEY='YOUR_MN_KEY' -v /home/bitcloud:/home/bitcloud:rw -d limxtec/btdx-masternode
docker ps
```

## Debbuging within a container (after start.sh execution)
Please execute ```docker run``` without option ```--entrypoint bash``` before you execute this commands:
```
tail -f /home/bitcloud/.bitcloud/debug.log

docker ps
docker exec -it btdx-masternode bash
# you are inside the btx-rpc-server container
root@container# supervisorctl status bitcloudd
root@container# cat /var/log/supervisor/supervisord.log
# Change to bitcloud user
root@container# sudo su bitcloud
bitcloud@container# cat /home/bitcloud/.bitcloud/debug.log
bitcloud@container# bitcloud-cli getinfo
```

## Debbuging within a container during run (skip start.sh execution)
```
docker run -p 8329:8329 -p 8330:8330 -p 9050:9050 --name btdx-masternode -e BTDX_IP='BTDX_IP' -e MN_KEY='YOUR_MN_KEY' -v /home/bitcloud:/home/bitcloud:rw --entrypoint bash limxtec/btdx-masternode
```

## Stop docker container
```
docker stop btdx-masternode
docker rm btdx-masternode
```
55 changes: 55 additions & 0 deletions bitcloud.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
rpcuser=btdxdmasternode<Replace with your passwd>
rpcpassword=<Replace with your passwd>
rpcallowip=127.0.0.1
rpcport=8330
server=1
listen=1
daemon=0
logtimestamps=1
masternode=1
mnconflock=0
promode=1
externalip=<Replace with your VPS IP address>
masternodeprivkey=<Replace with your masternode genkey>
addnode=107.167.77.105
addnode=108.61.167.247
addnode=110.151.159.228
addnode=144.202.25.238
addnode=144.202.64.94
addnode=148.163.101.126
addnode=148.251.15.195
addnode=149.28.161.30
addnode=168.0.148.150
addnode=188.166.122.105
addnode=188.68.39.1
addnode=209.250.233.152
addnode=209.250.238.218
addnode=209.250.238.240
addnode=213.108.119.84
addnode=217.61.14.63
addnode=24.12.9.44
addnode=36.231.112.121
addnode=45.32.153.47
addnode=45.32.211.79
addnode=45.76.135.147
addnode=45.76.88.226
addnode=45.76.94.84
addnode=45.77.45.175
addnode=45.77.63.111
addnode=46.151.138.54
addnode=47.254.129.26
addnode=47.254.144.133
addnode=51.15.232.231
addnode=80.211.138.212
addnode=80.211.17.85
addnode=81.92.203.218
addnode=85.10.201.196
addnode=86.177.148.120
addnode=86.83.95.210
addnode=87.173.55.205
addnode=88.130.61.34
addnode=88.198.61.50
addnode=89.236.137.142
addnode=94.176.238.54
addnode=95.85.13.73
addnode=91.64.218.116
7 changes: 7 additions & 0 deletions bitcloud.sv.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[program:bitcloudd]
command=sudo -u bitcloud /usr/local/bin/bitcloudd -pid=/home/bitcloud/.bitcloud/bitcloudd.pid -conf=/home/bitcloud/.bitcloud/bitcloud.conf -datadir=/home/bitcloud/.bitcloud/
autostart=true
autorestart=true
redirect_stdout=true
redirect_stderr=true
startsecs=30
14 changes: 14 additions & 0 deletions bootstrap.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash
COIN_CHAIN='https://node-support.network/bootstrap/bitcloud-blockchain.tar.gz'

mkdir /root/btdx_temp >/dev/null 2>&1
cd /root/btdx_temp >/dev/null 2>&1
echo -e "Downloading and extracting BitCloud blockchain files."
wget -q $COIN_CHAIN
tar -xzvf bitcloud-blockchain.tar.gz -C /root/btdx_temp >/dev/null 2>&1
rm -rf /root/.bitcloud/blocks >/dev/null 2>&1
rm -rf /root/.bitcloud/chainstate >/dev/null 2>&1
mv /root/btdx_temp/root/.bitcloud/blocks /root/.bitcloud >/dev/null 2>&1
mv /root/btdx_temp/root/.bitcloud/chainstate /root/.bitcloud >/dev/null 2>&1
cd ~
rm -R /root/btdx_temp >/dev/null 2>&1
Loading