How do I mine?

zakurai edited this page Mar 23, 2018 · 15 revisions

Mining XSH

Note: the five PoW algos available to mine for SHIELD are scrypt, x17, lyra2v2, myriad-groestl and blake2s

a) Choose your hardware

NVIDIA GPU

NVIDIA GPUs support all the SHIELD algos.

For all algos except scrypt, Alexis78's ccminer fork is highly recommended: http://ccminer.org/preview/ccminer-hsr-alexis-x86-cuda8.7z (Windows)

For scrypt, Tpruvot's fork is recommended, though it'll be competing with ASICs that can hash hundreds of times faster so mining scrypt is not ideal: https://github.com/tpruvot/ccminer/releases (Windows) (choose the latest x86 build)

AMD GPU

Using the default sgminer, you might not be able to mine all the SHIELD algos.

Available algos are: scrypt, lyra2rev2, myriadcoin-groestl (untested). Downloadable from: https://github.com/nicehash/sgminer/releases

If you want to mine the lyra2v2 algo specifically, mkxminer is a great asm-optimised lyra2v2 miner you can use: https://bitcointalk.org/index.php?topic=2360168

CPU (not recommended)

Using the following program you can mine all algos, though it'll be competing with ASICs and/or GPUs that can hash many hundreds or thousands of times faster than a CPU, so CPU mining is strongly discouraged.

You can use this miner to mine on all algos: https://github.com/JayDDee/cpuminer-opt

b) Setting up your .bat file for pool mining

  1. Create a file with a .bat extension in the same directory as the .exe file from your selected mining software. Edit this file to create your mining configuration.

    NVIDIA (ccminer) .bat:

    ccminer -a <ALGO> -o stratum+tcp://<POOL>:<PORT> -u <WALLET_ADDRESS> -p c=XSH
    

    e.g. ccminer -a lyra2v2 -o stratum+tcp://xsh.umine.org:4533 -u STKcaQS8MVBs1C457k89pCvverLvH58a1w -p c=XSH

    AMD (sgminer) .bat:

    sgminer -k <ALGO> -o stratum+tcp://<POOL>:<PORT> -u <WALLET_ADDRESS> -p c=XSH
    

    e.g. sgminer -k lyra2REv2 -o stratum+tcp://xsh.umine.org:4533 -u STKcaQS8MVBs1C457k89pCvverLvH58a1w -p c=XSH

    CPU (cpuminer-multi) .bat:

    minerd -a <ALGO> -o stratum+tcp://<POOL>:<PORT> -u <WALLET_ADDRESS> -p c=XSH -t <NUMBER_OF_THREADS>
    

    e.g. minerd -a scrypt -o stratum+tcp://xsh.umine.org:3433 -u STKcaQS8MVBs1C457k89pCvverLvH58a1w -p c=XSH -t 4

c) What to replace in the .bat file

You will need to replace <ALGO>, <POOL>, <PORT> and <WALLET_ADDRESS> before you use your .bat to start pool mining.

i) ALGO

You may choose which <ALGO> to use, though you may be restricted to some (e.g. cpuminer-multi can only mine the scrypt algorithm).

With SHIELD, you can choose from the algos: scrypt, x17, lyra2v2, myriad-groestl, blake2s. These may have different name variations depending on the miner that you use (try using the --help flag with your miner, or entering the /kernel folder to find these names).

e.g. ccminer uses lyra2v2 and myr-gr, whereas sgminer uses lyra2REv2 and myriadcoin-groestl instead.

ii) POOL

You can use the following pools, though most only support a subset of the five algos. Please visit the pool homepage to see if your chosen algorithm is supported on that pool.

https://xsh.umine.org (all algos available) - use xsh.umine.org for <POOL>

https://bigmine.org (all algos available) - use bigmine.org for <POOL>

https://bilbotel.fr (all algos available) - use pool.bilbotel.fr for <POOL>

https://antminepool.com (all algos available) - use s.antminepool.com for <POOL>

https://mining-dutch.nl (scrypt) - registration required

http://bsod.pw (blake2s, x17) - use pool.bsod.pw for <POOL>

https://umine.org (myr-gr) - use s.umine.org for <POOL>

https://crypto.n-engine.com (on hold)

https://beardedpool.fr (on hold)

iii) PORT

The <PORT> you need to use is often algo-specific, and located on the pool homepage. It is usually situated next to the algo or coin name in a large table of algos, coins, symbols etc.

e.g. https://xsh.umine.org has x17 on the table on the right-hand side, with port 3737.

iv) WALLET_ADDRESS

The <WALLET_ADDRESS> you want to collect your mining rewards in needs to be generated, and looks like STKcaQS8MVBs1C457k89pCvverLvH58a1w

The recommended wallet to use to generate one is the QT wallet, though you can use the web wallet (https://wallet.shieldx.sh), the Electrum wallet, a paper wallet (https://paper.shieldcurrency.com), an exchange address (e.g. from https://coinexchange.io) or the Android wallet.

IMPORTANT: Some pools that support multiple XSH algos (such as https://antminepool.com and https://bilbotel.fr) require a different wallet address for every algo. If you use the same wallet address on two different algos on the same pool, you will get a Stratum authentication failed error! As such, it's recommended you make a different .bat file for every algo (with different wallet addresses) to avoid this.


Happy mining! Example .bat configurations are in section b) above.