Pool Mining Guide
Clone this wiki locally
Pool Mining Guide
This guide assumes you already have a wallet running for you to receive your mining payouts. If not, refer to the installation guide first.
Registering for a Pool and Creating a Worker
Head to the top right of the page of either pool and click on Sign-up
Enter in your details to sign-up and don't forget your PIN! Take note of your username as you will need it later!
Sign-in to your new account and go to My Account > My Workers in the left pane and give your worker a name and any password.
Once you've added a worker, it should now show on the right hand side at the Worker Configuration. Just leave it at the default values it automatically entered. You should now have a username.worker and a password which you will use later in your miner.
Getting the Miner
To mine on a pool, currently there are only two publicly available miner programs, ocminer's custom cpuminer-xzc and optiminer's cpuminer-xzc which is a slightly optimized version of OCMiner's. For the purposes of this guide we will use Optiminer's version but can be applicable to ocminer's as well.
- Download the the Windows binary here.
- Extract the zip file's into any folder where you wish to run the miner from.
Open up Notepad and cut and paste the following line corresponding to your selected pool into it after replacing username.worker and password with the entries you created earlier.
cpuminer.exe -a lyra2rev2 -o stratum+tcp://xzc.suprnova.cc:5596 -u username.worker -p password
cpuminer.exe -a lyra2rev2 -o stratum+tcp://xzc.pool.mn:2428 -u username.worker -p password
cpuminer.exe -a lyra2rev2 -o stratum+tcp://stratum0.maxminers.net:3756 -u username.worker -p password
Click File *and *Save As
Select Save as Type as All Files (.) and then browse inside the folder where you extracted the zip and which contains cpuminer.exe and save it as cpuminer.bat
Now before you double click cpuminer.bat note that some antiviruses classify the miner's actions as dangerous and deletes it. Add the relevant exclusions to your Antivirus software before running it.
Double click cpuminer.bat and you should see something like this which means you are mining!
- We will be using Ubuntu 16.04 LTS as the basis of our guide here but installation should be similar with other distributions. Open up a terminal window.
Run the following in a terminal window:
sudo apt-get update
sudo apt-get install automake autoconf pkg-config libcurl4-openssl-dev libjansson-dev libssl-dev libgmp-dev gcc g++ git screen
Once that is done type this:
git clone https://github.com/optiminer/cpuminer-xzc
./build.sh# This builds the cpuminer binary and will take a few minutes.
nano cpuminer.sh# This creates the script to start mining.
From within nano type the relevant line depending on your pool and replacing username.worker and password with the entries you created earlier when signing up for the pool.
screen -S zcoin ./cpuminer -a lyra2rev2 -o stratum+tcp://xzc.suprnova.cc:5596 -u username.worker -p password
screen -S zcoin ./cpuminer -a lyra2rev2 -o stratum+tcp://xzc.pool.mn:2428 -u username.worker -p password
screen -S zcoin ./cpuminer -a lyra2rev2 -o stratum+tcp://stratum0.maxminers.net:3756 -u username.worker -p password
Press Ctrl-X and press Y to accept the changes.
chmod +x cpuminer.shto make the file executable
./cpuminer.shto launch the miner and you should see the following to show you're mining.
Press Ctrl-a-d to detach and you can then exit and have the miner running in the background. To resume the view of the miner type
screen -rfrom the terminal.