Docker Compose to running BitCore RPC node
free -m
dd if=/dev/zero of=/swapfile bs=1M count=2048
mkswap /swapfile
swapon /swapfile
chmod 600 /swapfile
free -m
-
Connect to your VPS via SSH
-
Clone the GitHub
git clone https://github.com/LIMXTEC/Bitcore-BTX-RPC-Installer.git
-
Create/Update Masternode information in .env (see example file env)
EXTERNAL_IP=<IP> RPC_USER=<btx_user> RPC_PWD=<btx_pwd>
-
Start your masternode and wait until blockchain is syncronized
docker-compose up -d
-
optional: to use the official bootstrap from LIMXTEC use the following script
./bootstrapping.sh
-
Check if blockchain is synchronised and masternode ready to be activated
docker exec -it bitcore_rpc bitcore-cli -datadir=/data -conf=/data/bitcore.conf -rpcconnect=172.21.0.11 -rpcuser=btx_user -rpcpassword=btx_pwd -rpcport=8556 mnsync status { "AssetID": 1, "AssetName": "MASTERNODE_SYNC_WAITING", "AssetStartTime": 1586727148, "Attempt": 0, "IsBlockchainSynced": false, "IsMasternodeListSynced": false, "IsWinnersListSynced": false, "IsSynced": false, "IsFailed": false } #WAITING... docker exec -it bitcore_rpc bitcore-cli -datadir=/data -conf=/data/bitcore.conf -rpcconnect=172.21.0.11 -rpcuser=btx_user -rpcpassword=btx_pwd -rpcport=8556 mnsync status { "AssetID": 999, "AssetName": "MASTERNODE_SYNC_FINISHED", "AssetStartTime": 1587319491, "Attempt": 0, "IsBlockchainSynced": true, "IsMasternodeListSynced": true, "IsWinnersListSynced": true, "IsSynced": true, "IsFailed": false }
PLEASE NOTE: It's very important to wait until IsSynced value is true!