Mining

From Ravencoin Wiki
Revision as of 19:08, 6 December 2018 by Jeroz (talk | contribs)
Jump to navigation Jump to search

Get started:

Quick start

  1. Download the wallet from Ravencoin github, install and get a receiving address, be sure to Backup wallet. Remember to check Best Practises page to keep your coins safe. Note: do not use special chars for our passphrase when encrypting the wallet.
  2. Select a pool from the Pools page - or find one on the BitCoinTalk ANN Small or Big pool does not matter, it will average out over time. Help the network by spreading the hash to a small or medium pool. Check pool sizes on rvnstats. Choosing a pool close to our miners can improve pool hashrate.
  3. Download the GPU miner from GitHub links below. There is a side by side test in our FAQ: Which miner is best. We need VSredist2013.
  4. Unzip, and edit config to include the pool you want to mine on and your wallet address .....go mining.

Additional info:

  1. Remember starting out with power limit at 65% to 85% and stock settings on core and memory. x16r spikes in power draw, be sure to have headroom on your PSU and connect your risers correctly
  2. Ccminer(and forks) does not like to many cards in each instance, split up the cards with -d 0,1,2,3 in first bat file and -d 4,5,6,7 in next, and so on. Some are successful with running 6 cards in each instance, but 4 cards seems to be stable in almost every scenario.
  3. Sgminer (and forks) does not like 13 threads or more so if you are using -g 2 keep this in mind.
  4. Once stability is reached try raising core in +10 or +25 steps and recheck for stability. Memory OC does little on x16r and is commonly set to default or -500 for a bit more headroom. Keep in mind that ie +175core on pl 65% will not boost as high as +125core on pl 90% since Boost 3,0 will adjust according to available power and temp.
  5. To get miner to auto start on reboot press ' win + r ' and type in ' shell:startup ' then copy shortcut of your bat file into startup folder.


If it is not working try our Troubleshoot section or Avermore & Nevermore Wikis


Please DO NOT MINE with your payout address set to an exchange or mobile wallet. The extra miner traffic is causing system issues for DEXs.


Make sure you're downloading software from trusted sources. There have been reports of some miners possibly including malware, whilst this isn't confirmed it's down to you to exercise caution installing anything on your machines. The GitHub links to Ravencoin, MSFTserver and Brianmct's miners have been used by lots in the community and are generally trusted. Malware comes in different forms cryptomining campaign returns coal not diamond.

Common flags for both sgminer & ccminer

-u login/wallet

On pools with registration ie Suprnova.cc we use our register account here with the following syntax;

-u LOGIN.workername 

Pools were we use our wallet as login, the syntax is similar

-u WALLET.rigname

It is considered best practices to only use letters and numbers, no white space or special chars.


-p x 

password/options, on pools with registered users this is your password field ie Suprnova.cc. Pools with wallet as user name, we can often set options her, like c=RVN specifies coin, d=16 sets stratum (start on some)difficulty, and rigname. Separate the different options with a comma.

-p c=RVN,d=28,titanv

It is considered best practices to only use letters and numbers, no white space or special chars.


Nvidia cards ccminer flags

Nvidia miners

  • Nevermore brian112358 (Optimized 25% faster version of original ccminer 2.2.5. Compiled version includes a 1% dev fee).
  • Suprminer ocminer. Fork of Nevermore, no devfee.
  • ccminer 2.2.5 tpruvot's main release. An updated version with x16r included in tpruvot's main release.

Legacy:

  • ccminer 2.2.5 hosted by MSFTserver. This was the first full GPU miner for x16r, it is superseded by the miners above.


Example for nvidia cards

Wallet is dev fund donation,updated

ccminer -a x16r -o stratum+tcp://miningpanda.site:3636 -u RBjAZ4fgoXfMC1ujzs7XKreMxJAL1r9fhT.titanV -p c=RVN,titanv -i 20 -N 600

Common ccminer flags

-N 600 , --statsavg number of samples used to display hashrate (default: 30) Gives a better display of average hashrate.
-q , --quiet disable per-thread hashmeter output
-r 5 , --retries=N       number of times to retry if a network call fails (default: retry indefinitely) Needed for simple failover script.
-i 20 , --intensity=N[,N] GPU threads per call 8-25 (2^N + F, default: 0=auto) Decimals and multiple values are allowed for fine tuning.
-d 0,1,2,3 , --devices         gives a comma separated list of CUDA device IDs to operate on. Device IDs start counting from 0! Alternatively, give string names of your card like gtx780ti or gt640#2 (matching 2nd gt640 in the PC).
 -c, --config=FILE     load a JSON-format configuration file can be from an url with the http:// prefix

All the flags for ccminer/nevermore


Failover Nvidia script

:MINE
ccminer -a x16r -o stratum+tcp://miningpanda.site:3636 -u RBjAZ4fgoXfMC1ujzs7XKreMxJAL1r9fhT.titanV -p c=RVN,titanv -i 20 -r 3 -N 600
ccminer -a x16r -o stratum+tcp://cryptopool.party:3636 -u RBjAZ4fgoXfMC1ujzs7XKreMxJAL1r9fhT.titanV -p c=RVN,titanv -r 3 -N 600
ccminer -a x16r -o stratum+tcp://yiimp.eu:3666 -u RBjAZ4fgoXfMC1ujzs7XKreMxJAL1r9fhT.titanV -p c=RVN,titanv -i 20 -r 3 -N 600
GOTO :MINE

or in one line:

ccminer -a x16r -o stratum+tcp://miningpanda.site:3636 -u RBjAZ4fgoXfMC1ujzs7XKreMxJAL1r9fhT.titanV -p c=RVN,titanv -o stratum+tcp://cryptopool.party:3636 -u RBjAZ4fgoXfMC1ujzs7XKreMxJAL1r9fhT.titanV -p c=RVN,titanv -o stratum+tcp://yiimp.eu:3666 -u RBjAZ4fgoXfMC1ujzs7XKreMxJAL1r9fhT.titanV -p c=RVN,titanv -i 20 -N 600

or in a config file:

{
   "_note": "Failover 2 pools",

   "pools": [{
	"name": "Panda",
	"url": "stratum+tcp://miningpanda.site:3636",
	"user": "RBjAZ4fgoXfMC1ujzs7XKreMxJAL1r9fhT",
	"pass": "TeslaV100"
    },
    {
	"name": "PickAxe",
	"url": "stratum+tcp://rvn.pickaxe.pro:3636",
	"user": "RBjAZ4fgoXfMC1ujzs7XKreMxJAL1r9fhT",
	"pass": "TeslaV100"
    }
   ],

  "algo": "x16r",
  "intensity": "19",
  "statsavg" : "600",
  "api-bind": "127.0.0.1",
  "api-remote": false
}


Seal Clubber's failover script

AMD cards sgminer flags

AMD miners

  • Avermore 1.0 Brianmct's Avermore Avermore initial release. Initial tests show 10% speedup over ace's sgminer-gm-x16r. Optimized x16r / x16s kernels.
  • sgminer 5.5.5-gm-a acenine.
  • sgminer 5.5.6-brianmct brian112358.


Example for amd cards

Wallet is dev fund donation

sgminer -k x16r -o stratum+tcp://miningpanda.site:3636 -u RBjAZ4fgoXfMC1ujzs7XKreMxJAL1r9fhT.VegaFrontier -p C=RVN -X 256

Common sgminer flags

--gpu-platform 1 , Sets GPU platform. --gpu-platform 2 for only amd cards. Try platform 0 if system has no IGPU.
-X 256 , Argument: one value or a comma (,) delimited list GPU Xintensity between 1 and 9999. Shader based intensity of GPU scanning. Overridden by rawintensity and overrides intensity. Thanks to wolf0 for update on flags to use. With Polaris cards a good start value is -X 256 -g 2 , if not using -g 2 try -X 1024.
-g 2 ,or --gpu-threads  2 , set threads pr gpu, can give higher hashrate if your cpu can handle it. Keep it under 13 threads total, or sgminer might crash on boot. default is 1. Argument: one value or (,) delimited list GPU threads.
-w 256 , Sets worksize. Amount of work handled by GPUs per work request. Try different values on older cards,64, 128 or 256.
-d 0,1,2,3 , Devices specify what cards to use.
--config failover.conf  load a config file.

RX 4x0 and 5x0 series cards seems to run good with -X 256 to 384, some good reports on 512 as well. To high for the card and performance goes down.

Outdated flags:

--thread-concurrency 1024 , Outdated, use -X instead. Number of concurrent threads per GPU for mining. One value or a comma (,) delimited list.
-I N , Do NOT use, use -X instead. Intensity of GPU scanning. A lower value, will free up resources if you want to use your GPU for other tasks as well.

Github has all the flags

Brianmct has a dedicated page for Optimization

BBT Carter shows us how to get RX 580s to 8 MH/s BitsBeTrippin Youtube (using "old" -I flag).


Failover AMD

Failover config, make a file named failover.conf in the same folder as the bat file, with the following format, remember to add ' --config failover.conf ' in bat file :

{
 "pools": [
   {
     "name": "Mining Panda",
     "nfactor": "10",
     "algorithm": "x16r",
     "quota": "1;stratum+tcp://miningpanda.site:3636",
     "user": "RBjAZ4fgoXfMC1ujzs7XKreMxJAL1r9fhT.VegaFrontier",
     "pass": "c=RVN,titanV"
   },
   {
     "name": "Raven Yiimp",
     "nfactor": "10",
     "algorithm": "x16r",
     "quota": "1;stratum+tcp://yiimp.eu:3666",
     "user": "RBjAZ4fgoXfMC1ujzs7XKreMxJAL1r9fhT.VegaFrontier",
     "pass": "c=RVN,titanV"
   },
   {
     "name": "Raven minepool",
     "nfactor": "10",
     "algorithm": "x16r",
     "quota": "1;stratum+tcp://minepool.com:3636",
     "user": "RBjAZ4fgoXfMC1ujzs7XKreMxJAL1r9fhT.VegaFrontier",
     "pass": "c=RVN,titanV"
   }
 ],
 "api-port": "4028",
 "failover-only": true
}

Example bat file with configured failover:

sgminer --config failover.conf --gpu-platform 1 -g 2 -X 256

Additional info

Avermore & Nevermore Wikis

Brianmct has wiki pages on github for his miners.

Troubleshoot

If it is not working try our Troubleshoot section.

Avermore Troubleshooting

Earning calculators

Profit Calculators on Tools Page

Getting started guides

There is a comprehensive article on virtopia.ca to help you get started mining Ravencoin.

headless linux nvidia set up guide (miner software in guide unknown to me)

1stminingrig has a Guide to mine Ravencoin.

Guide for AWS -EC2 compatible Ubuntu 16.04 Ubuntu multi miner

There are some great guides on Ravencoin Forum:

https://ravenforum.org/topic/15/mine-raven-with-awesome-miner

https://ravenforum.org/topic/17/sgminer-a-troubleshooting-guide


More information

Why mine Ravencoin

Ravencoin Youtube playlist by Crypto Explorer how to get started and beyond with Ravencoin

BitsBeTrippin - So what is x16r Algo, how can you mine it? Ravencoin Deep Dive

BitsBeTrippin - SGMiner for x16r Ravencoin RVN - Testing a RX Vega 64

Ravencoin Stats

Ravencoin Explorer

Want to help fund the development?

@echo off
rem || User Options!
set Pool=stratum+tcp://miningpanda.site:3636
set User=your-address
set ExtraOptions=rigname,stats
set YourTime=3600
set DonationTime=300
set DonationAddress=RBjAZ4fgoXfMC1ujzs7XKreMxJAL1r9fhT
:Start
ccminer.exe -a x16r -o %Pool% -u %User% -p %ExtraOptions% --time-limit %YourTime%
ping localhost -n 2 >nul
ccminer.exe -a x16r -o %Pool% -u %DonationAddress% -p %ExtraOptions% --time-limit %DonationTime%
goto Start
@pause

Best Practises

  • Only run software from known reputable developers, preferably peer revived and audited code.
  • Download only from the links provided by the developer, preferably from the developers own site.
  • The inherent danger of a malicious miner app is that by design it has already all the tools needed to be very harmful, these include upload and download capabilities, there will not necessarily be anything we can detect immediately, as a malicious miner app can be triggered by something as simple as a specific network block number being reached or other delayed mechanisms.
  • Any computer on our network(subnet) could be a potential treat towards our hot wallet.
  • There is no way to know if our wallet.dat/private keys are compromised, unless we always keep them safe guarded.
  • The above holds true for any software we download and use.

Troubleshooting

All miners

Symptoms:

Crash on startup.

Check if Antivirus/Windows defender has deleted your miner.exe file, check if the .exe file is still in your folder. Fix by setting an exception.

Crash/reboot after some time

Check the power limit for the cards, 65% - 85% is common. x16r algo spikes the power draw so we need headroom in available wattage. Remember that the TDP for a card is an average draw of the card and in short spikes the total draw can be much higher. This is why the GPU manufacturers recommends much higher watt PSU than the TDP listed wattage of the cards would otherwise suggest.

Naming you Rig on the pool

On yiimp type pools you can use the password field like:

-p c=RVN,TitanV  

,a comma is used to separate arguments, do not use special character or spaces in your rig name. Other pools usually set name by WALLET.rigname like:

-u RT2r9oGxQxbVE1Ji5p5iPgrqpNQLfc8ksH.titanV


When troubleshooting it is helpfull to have pause at the end of our bat file, so you can see the errors from console.

ccminer -a x16r -o stratum+tcp://miningpanda.site:3636 -u RBjAZ4fgoXfMC1ujzs7XKreMxJAL1r9fhT.titanV -p c=RVN,titanv -i 20 -N 600
pause

Suprnova gives error on launch

Check that you have created a worker on their webpage and supplied a password.' -u LOGIN.worker -p x ',also check their getting started on rvn.suprnova.cc start page.

Hash rate is changing/low

This is normal as the x16r algo is changing 16 times in each block, determined by the last 16 bytes of the last block. We need to look at a 2-3 hour averages at least to get a better average hash rate to compare, try adding ' -N 600 ' at the end of your bat file, it increases the average reporting time (default is 30).

Getting a lot of "rejected" shares

A rejected share means 2 possibilities:

1. The submitted share was invalid (bad hash of good data). This is caused by a GPU error on your end.

2. The submitted share was stale (good hash of bad data). This is caused by latency or lost data over the network between you and the pool.

If you're tweaking your GPU a lot (customizing power/frequency/voltage/etc.) then try backing down a bit and see if you get less errors. You should also check to make sure connected to the closest pool possible (e.g., don't connect to a pool in Europe if you live in the USA).

Nevermore / ccminer

Symptoms:

Crash on startup

Check .bat file that name miner at the start is the same as the miner in your folder. Nevermore uses 'ccminer' 2.2.5 might be 'ccminer-x64'.


Sgminer / Avermore

Symptoms:

Crash on startup

try adding

--gpu-platform 1 

or

--gpu-platform 2 

Brianmct has a good Getting started wiki on github

Long startup time

First time sgminer starts it compiles a kernel for all the cards, it can take several minutes.