-
-
Notifications
You must be signed in to change notification settings - Fork 29
C01. Daemon | How to run a Qwertycoin Masternode
On this page you will find description how to run Qwertycoind with JSON PRC as linux service. I use Ubuntu server 16.03 x64, but this description you can be applied to any of the linux versions with small changes.
- Compile the latest Version from Sourcecode
Use this compilation guides: https://github.com/qwertycoin-org/qwertycoin#how-to-compile
For example under Ubuntu:
git clone --recurse-submodules https://github.com/qwertycoin-org/qwertycoin
cd ./qwertycoin
mkdir ./build
cd ./build
cmake -DBUILD_ALL:BOOL=TRUE ..
cmake --build . --config Release
- Copy all the compiled files in ./build/src/ to directory /opt/qwertycoin/:
sudo mkdir -p /opt/qwertycoin/.Qwertycoin
sudo cp ./src/* /opt/qwertycoin/
- To start service we will use user qwertycoin, so let's create it and manage permissions:
sudo useradd qwertycoin
sudo groupadd qwertycoin
sudo usermod -a -G qwertycoin qwertycoin
sudo chgrp -R qwertycoin /opt/qwertycoin/
sudo chmod -R 770 /opt/qwertycoin/
- Create log file and add permissions to write it:
sudo mkdir -p /var/log/qwertycoin
sudo touch /var/log/qwertycoin/qwertycoind
sudo chgrp -R qwertycoin /var/log/qwertycoin/qwertycoind
sudo chmod -R 770 /var/log/qwertycoin/qwertycoind
- Let's check if everything is ok. Try to run daemon with qwertycoin user permission:
sudo -u qwertycoin /opt/qwertycoin/qwertycoind --data-dir=/opt/qwertycoin/.Qwertycoin --log-file=/var/log/qwertycoin/qwertycoind --restricted-rpc --enable-cors=* --enable-blockchain-indexes --rpc-bind-ip=0.0.0.0 --rpc-bind-port=8197 --fee-address=QWC1L4aAh5i7cbB813RQpsKP6pHXT2ymrbQCwQnQ3DC4QiyuhBUZw8dhAaFp8wH1Do6J9Lmim6ePv1SYFYs97yNV2xvSbTGc7s
Stop it via entering exit
inside daemon session.
- You could pre-download blockchain bootstrap to speed-up process:
cd /opt/qwertycoin/.Qwertycoin
wget https://blockchain.qwertycoin.org/snapshot_$(date "+%Y-%m-%d").tar.gz
tar -xvzf snapshot_$(date "+%Y-%m-%d").tar.gz
rm -f snapshot_$(date "+%Y-%m-%d").tar.gz
sudo chgrp -R qwertycoin /opt/qwertycoin/
sudo chmod -R 770 /opt/qwertycoin/
- To start Qwertycoind , we need to create service file in /etc/systemd/system:
nano /etc/systemd/system/qwertycoind.service
[Unit]
Description=Qwertycoind
Documentation=https://qwertycoin.org
After=syslog.target
[Service]
User=qwertycoin
ExecStart=/opt/qwertycoin/qwertycoind --data-dir=/opt/qwertycoin/.Qwertycoin \
--log-file=/var/log/qwertycoin/qwertycoind \
--restricted-rpc \
--enable-cors=* \
--enable-blockchain-indexes \
--rpc-bind-ip=0.0.0.0 \
--rpc-bind-port=8197 \
--fee-address=QWC1L4aAh5i7cbB813RQpsKP6pHXT2ymrbQCwQnQ3DC4QiyuhBUZw8dhAaFp8wH1Do6J9Lmim6ePv1SYFYs97yNV2xvSbTGc7s \
--contact contact@yourdomain.org
SuccessExitStatus=143
[Install]
WantedBy=multi-user.target
Do not forget to change address to your wallet!
- Run service:
sudo systemctl daemon-reload
sudo systemctl enable qwertycoind.service
sudo systemctl start qwertycoind.service
- To check service status:
systemctl status qwertycoind.service
● qwertycoind.service - Qwertycoind
Loaded: loaded (/etc/systemd/system/qwertycoind.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2018-06-08 04:11:30 EDT; 37s ago
Docs: https://qwertycoin.org
Main PID: 1882 (Qwertycoind)
CGroup: /system.slice/qwertycoind.service
└─1882 /opt/qwertycoin/qwertycoind --data-dir=/opt/qwertycoin/.Qwertycoin
lines 1-7/7 (END)
On this page you will find description how to run Qwertycoind I use Windowx x64 Enterprise, but this description you can be applied to any Windows Version (> Windows 7).
- Compile the latest Version from Sourcecode OR! download a prebuilt Release from here: https://releases.qwertycoin.org/
Use this compilation guides: https://github.com/qwertycoin-org/qwertycoin#how-to-compile
For example under Windows:
git clone https://github.com/qwertycoin-org/qwertycoin
cd qwertycoin
md build
cd build
cmake -G "Visual Studio 15 2017 Win64" -DBUILD_ALL:BOOL=TRUE ..
cmake --build . --config Release
If you use a prebuilt Version, download it, install it and forward to Step 3
- Self compiled Versions:
If all went well, it will complete successfully, and you will find all your binaries in the
.\build\src\Release
directory
Open a CMD on Windows and navigate to this folder. For example: (the folder structure could be different.)
cd C:\Github\qwertycoin\build\src\Release
- Prebuilt Versions:
After installation you will find the binaries in:
C:\Program Files\qwertycoin\bin
- Start the Masternode in a CMD
Copy and paste the following (that's one single line!):
qwertycoind.exe --restricted-rpc --enable-cors=* --enable-blockchain-indexes --rpc-bind-ip=0.0.0.0 --rpc-bind-port=8197 --fee-address=QWC1L4aAh5i7cbB813RQpsKP6pHXT2ymrbQCwQnQ3DC4QiyuhBUZw8dhAaFp8wH1Do6J9Lmim6ePv1SYFYs97yNV2xvSbTGc7s
If you want you can replace the developers fee address with your own QWC Wallet address (Not necessary)
- Done
- A01. | Contributing
- A02. | Getting Started
- A03. | Qwertycoin Community
- A04. | Qwertycoin Voting
- A05. | Qwertycoin API
- B01. | Generating a Wallet
- B02. | Making a Paper Wallet
- B03. | Wallet Backup
- B04. | Wallet Recovery
- B05. | Wallet Update
- B06. | Using CLI Wallet
- B07. | Using RPC Wallet
- B08. | Using GUI Wallet
- B09. | Using Zero Wallet
- B10. | Using Web Wallet
- B11. | Using Mobile Wallet
- B12. | RPC Wallet API
- B13. | Sign and verify messages
- C01. | Start Masternode
- C02. | Fix Sync Issues
- C03. | Load Checkpoints
- C04. | JSON RPC API
- C05. | HTTP RPC API
- D01. | XMR Stak Guide
- D02. | XMR Stak Linux Guide
- D03. | XMRIG Guide
- D04. | Mining with SBC
- D05. | Cloud Mining
- D06. | Mobile Mining
- D07. | Using a Mining Pool
- D08. | Creating a Mining Pool
- E01. | How to trade QWC on Crex24
- E02. | How to trade QWC on Bitexlive
- E03. | How to trade QWC on Bisq
- G01. | Hosting Block Explorer
- G02. | Hosting Faucet
- G03. | Hosting Web Wallet
- G04. | How to use the QWC Faucet