Skip to content

Instantly share code, notes, and snippets.

@cafarella
Last active May 20, 2020 03:59
Show Gist options
  • Save cafarella/ab0fd60693aeae1a4ae8454863f3407e to your computer and use it in GitHub Desktop.
Save cafarella/ab0fd60693aeae1a4ae8454863f3407e to your computer and use it in GitHub Desktop.
Strayacoin Mining Guide

How to mine Strayacoin on Nvidia hardware, 2020 edition

I assume you already know a bit about hardware, wallets, pools and a bit about how the blockchain works. You should also have the latest NVIDIA drivers.

Step 1 - Getting a wallet

Firstly, you are going to need a wallet. I'd personally recommend the Windows wallet https://github.com/StrayaCoin/StrayaCoin-Core/releases and a mobile wallet as a companion https://play.google.com/store/apps/details?id=org.strayacoin.wallet Generate a wallet address, and make sure your wallet and blockchain are synced.

Write down your 12 backup codes and take note of your public and private keys!

Step 2 - Downloading mining software

Mining software is what will make this whole operation chooch. CCMiner is an open-source CUDA miner, allowing us to utilize the CUDA cores on out NVIDIA graphics card to their full potential. You can find CCMiner at https://github.com/tpruvot/ccminer/releases. Note that you will have to allow this program through the antivirus and firewall software on your computer. It should automatically ask you to "Allow a program through the firewall". Once you have downloaded the mining software, extract the zip file to a directory of your choosing and run "CCMiner-x64.exe" so the initial configuration file is generated.

Step 3 - Joining a pool

A pool allows you to mine alongside other people, and distribute resources equally. The Australian mining pool, "SaltPool" allows Strayacoin to be mined using their stratum+tcp scrypt mining server. You can find SaltPool at https://saltpool.net. The pool url you are going to use will be "stratum+tcp://stratum.saltpool.net:3434", the username will be "(your strayacoin wallet address)" and the password will be "c=NAH".

Step 4 - Making the configuration file

Inside the folder where "CCMiner-x64.exe" resides, there should be a file called "ccminer.conf". We need to edit that file to add our pool url and credentials. Here is a premade one, you just need to copy and paste the contents, then change the wallet address.

{
	"_comment1" : "Possible keys are the long options (ccminer --help)",
	"_comment2" : "todo: support /* comments */",
	"api-bind": "127.0.0.1:4068",
	"statsavg": 20,
	"quiet" : false,
	"debug" : false,
	"protocol" : false,
	"cpu-priority" : 3,
	"algo" : "scrypt",
	"url" : "stratum+tcp://stratum.saltpool.net:3434",
	"user" : "<strayacoin wallet address>",
	"pass" : "c=NAH"
}

Once you have pasted and saved the "ccminer.conf" file, you should run "CCMiner-x64.exe" as a standard user. This will connect to the mining pool and calibrate the GPU, so the client can start getting assigned jobs. This should take about 2 minutes. The output should look a bit like this:

[2020-05-20 09:36:53] Starting on stratum+tcp://stratum.saltpool.net:3434
[2020-05-20 09:36:53] NVML GPU monitoring enabled.
[2020-05-20 09:36:53] NVAPI GPU monitoring enabled.
[2020-05-20 09:36:53] 1 miner thread started, using 'scrypt' algorithm.
[2020-05-20 09:36:54] Stratum difficulty set to 128 (0.00195)
[2020-05-20 09:36:54] scrypt block 445860, diff 115.701
[2020-05-20 09:36:56] GPU #0: 32 hashes / 4.0 MB per warp.
[2020-05-20 09:36:56] GPU #0: Performing auto-tuning, please wait 2 minutes...
[2020-05-20 09:36:56] GPU #0: maximum total warps (BxW): 741
[2020-05-20 09:37:47] GPU #0: <XXXX> MHz <Temp>C FAN 0% 

Once that has finished, you should see this:

[2020-05-20 09:40:07] GPU #0: 3613972.59 hash/s with configuration T6x24
[2020-05-20 09:40:07] GPU #0: using launch configuration T6x24
[2020-05-20 09:40:07] GPU #0: Intensity set to 12.125, 4608 cuda threads
[2020-05-20 09:40:07] scrypt factor set to 9 (1024)
[2020-05-20 09:40:09] scrypt block 445872, diff 63.772
[2020-05-20 09:40:11] GPU #0: NVIDIA <Card model>, <Speed> kH/s

If you see this every 30 seconds or so, Congratulations! You're mining!

accepted: 1/1 (diff 0.003), 2698.65 kH/s yes!

You have just mined one block!

Step 5 - Checking your progress

To see when the next payout is, and how much you have made, visit https://saltpool.net/?address= You will be able to see your mining statistics and much more once you enter your payout wallet address / username. You can mine with multiple computers / workers at once, just use the configuration file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment