Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

POW Mining Doc update #1134

Merged
merged 4 commits into from
Oct 16, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/pow-mining-guide/rig_config.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
109 changes: 70 additions & 39 deletions docs/mining/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

---

## Overview

Proof-of-work mining, more commonly referred to as PoW mining, is the activity
of committing your computer’s hardware and resources to process network
transactions and build the blocks that make up the Decred blockchain.
Expand All @@ -28,72 +26,105 @@ mining unlikely to be profitable.

---

## Solo Mining or Pool Mining
## Purchasing Specialized Hardware (ASIC)

##### <img class="dcr-icon" src="/img/dcr-icons/Solo.svg" /> Solo Mining
ASIC are the machines used to mine the most popular cryptocurrencies and can only be used for mining a single algorithm.

Here is a selection of the Decred ASIC miners which are available on the market today:

| Miner | Hashrate |Power Consumption (Watts)| Unit Power (W/Th)|
| ------------------|:-----------:|:-----------------------:|:----------------:|
| StrongU STU-U1++ | 52 TH/s | 2,100 W |40 W/Th |
| Whatsminer D1 | 48 TH/s | 2,200 W |46 W/Th |
| Antminer DR5 | 35 TH/s | 1,610 W |46 W/Th |


You can either buy direct from the manufacturers on their official website:

:fontawesome-solid-exclamation-triangle: **Solo mining is not recommended and is not covered by this documentation!** The Decred network regularly sees a network hash rate of up to 10,000Gh/s. Solo mining is generally only done by advanced individuals or organized groups with a large cluster of GPUs so it is not addressed here.
* [Whatsminer](https://www.whatsminer.com/?locale=en)
* [Bitmain](https://www.bitmain.com/)
* [StrongU](https://strongu.com.cn/?lang=en-us)

##### <img class="dcr-icon" src="/img/dcr-icons/Pool.svg" /> Pool Mining
Or you can also go through ASIC resellers such as:

When you mine in a pool, your hashrate is combined with all the other pool miners’ hashrates to look for the correct solution for a block. You will receive a reward based on the amount of work your miner performs in the pool.
Pool mining distributes shares based on blocks found so you can earn a steady amount of Decred rather than the "all or none" of solo mining.
* [Blockware Mining](https://www.blockwaresolutions.com/)
* [Kaboom Racks](http://kaboomracks.com)

---

## <img class="dcr-icon" src="/img/dcr-icons/Receive.svg" /> Obtain a Decred Address to Receive Funds With
## Hosting Your ASIC
jholdstock marked this conversation as resolved.
Show resolved Hide resolved

Follow the [dcrctl Basics](../wallets/cli/dcrctl-basics.md) guide and create an address so you can withdraw mining rewards to it.
When mining first started on CPU and GPU’s mining at home was very feasible. But as mining has become more competitive and industrialized, ASICs have taken over the network. For most people hosting an ASIC at home is not an option given the noise & power draw. That is why many miners choose to send their ASICs to a mining colocation. The hosting company charges a “hosting fee” in return for providing the ASIC electricity and an environment to run. Different models such as profit-sharing are available for larger miners.

Over the past few years many hosting companies have become available in North America and can be found in this [database](https://hashrateindex.com/farms). This database contains some of the top facilities like Blockware, Compute North, Core Scientific, Frontier, Box Miner, and many more.

Please make sure to do your own research before making any decision on engaging a colocation business.

---

## <img class="dcr-icon" src="/img/dcr-icons/SignUpForPool.svg" /> Sign up for a Mining Pool
## Setting up your ASIC
jholdstock marked this conversation as resolved.
Show resolved Hide resolved

These mining pools are known to support Decred:
**Powering up the Miner**

* [:fontawesome-solid-external-link-square-alt: BeePool](https://beepool.org)
* [:fontawesome-solid-external-link-square-alt: F2Pool](https://www.f2pool.com)
* [:fontawesome-solid-external-link-square-alt: Poolin](https://www.poolin.com)
* [:fontawesome-solid-external-link-square-alt: UUpool](https://uupool.cn/dcr)
* [:fontawesome-solid-external-link-square-alt: Luxor](https://mining.luxor.tech/coins/decred)
* [:fontawesome-solid-external-link-square-alt: Coinmine](https://www2.coinmine.pl/dcr/)
* [:fontawesome-solid-external-link-square-alt: Suprnova](https://dcr.suprnova.cc)
Connect your machine to the power outlet via the built-in PSU. Then connect your miner to your internet-connected router or switch using a standard network cable. You are now ready to power up your miner.

Mining pools all work more or less the same but you may wish to sign up at multiple pools and see which one suits you the best.
**Scanning for Devices**

Please choose to mine on a smaller pool so the network's hashrate can be spread out for better decentralization of mining power!
To get started, use a scanning tool like [AngryIP](https://angryip.org/) or [Locator](https://minerstat.com/software/locator) to scan every device on your local network and see its IP address. After you have identified your miner’s IP address, you are ready to proceed with Configuration.

---
**Configuration**

Enter the local network IP address of your miner in the URL bar of any web browser. A dashboard similar to the one shown below will pop up. We are setting up a Whatsminer D1, but the process is similar for other ASICs.

## <img class="dcr-icon" src="/img/dcr-icons/Servers.svg" /> GPU Drivers/Software

GPU drivers usually contain the libraries needed for mining. If you have difficulties running the software you may wish to re-install and specifically check that the OpenCL (AMD) or CUDA (NVIDIA) libraries are selected.
![Rig Configuration Detail](/img/pow-mining-guide/rig_config.png)

---

## <img class="dcr-icon" src="/img/dcr-icons/Download.svg" /> Select and Download Mining Software
## Solo Mining or Pool Mining
jholdstock marked this conversation as resolved.
Show resolved Hide resolved

### Official Decred Miner (gominer)
##### <img class="dcr-icon" src="/img/dcr-icons/Solo.svg" /> Solo Mining

Gominer is the official Decred miner developed and supported by the Decred team. It is the easiest miner to setup and start mining and so it is recommended for most users. Currently, the latest version of gominer is **:octicons-mark-github-16: [v{{ gominerversion }}](https://github.com/decred/gominer/releases/)** and the official binaries can be downloaded from **<https://github.com/decred/decred-binaries/releases/tag/v1.0.0>**
:fontawesome-solid-exclamation-triangle: **Solo mining is not recommended and is not covered by this documentation!** The Decred network regularly sees a network hash rate of up to 422Ph/s. Solo mining is generally only done by advanced individuals or organized groups with a large cluster of GPUs so it is not addressed here.

Please be certain to select the correct operating system (Windows/Linux) and the correct version for your GPU type (CUDA for NVIDIA cards, OpenCL/OpenCLADL for AMD cards). gominer is only available to 64-bit operating systems. User guides to start mining with gominer can be found here:

- [gominer Pool-Mining](../mining/proof-of-work/pool-mining/gominer.md)
#### Pool Mining

### Unofficial Miners
When you mine in a pool, your hashrate is combined with all the other pool miners’ hashrates to look for the correct solution for a block. You will receive a reward based on the amount of work your miner performs in the pool. Most mining pools pay on a pay-per-share method meaning that miners earn a steady amount of Decred rather than the “all or none” of solo mining.

* :octicons-mark-github-16: [cgminer](https://github.com/kR105-zz/cgminer) - cgminer is a popular miner for **AMD** GPUs that has a long history of use in many different cryptocurrencies. It is more difficult to use than the decred gominer.
---

* :octicons-mark-github-16: [ccminer](https://github.com/tpruvot/ccminer) - ccminer is a popular miner for **NVIDIA** GPUs that has a long history of use in many different cryptocurrencies. It is more difficult to use than the decred gominer.
## Choosing and Configuring a Mining Pool

* :octicons-mark-github-16: [sgminer](https://github.com/tpruvot/sgminer) - Those with an **AMD** graphics card running Windows may want to download sgminer.
To finish the configuration, you will need to choose a mining pool. You can consider payout method ([PPS vs PPLNS](https://www.hashrateindex.com/blog/pps-fpps-pplns-pps_plus)), pool fee, geographic location of the pool, ping time to the server, user interface, statistics/data, customer support, community channels and more. Mining pools all work more or less the same but you may wish to sign up at multiple pools and see which one suits you the best.

---
You may wish to consider selecting a smaller pool to distribute the hashrate more widely and better decentralize the networks mining power.

These mining pools are known to support Decred:

* **[Luxor](https://mining.luxor.tech/coins/decred)** (USA)
* **[F2Pool](https://www.f2pool.com/)** (China)
* **[Poolin](https://www.poolin.com/)** (China)
* **[UUpool](https://uupool.cn/dcr)** (China)
* **[Antpool](https://antpool.com/)** (China)
* **[BTC.com](https://pool.btc.com/)** (China)
* **[CoinMine](https://www2.coinmine.pl/)** (Poland)

In this guide, we will set up an ASIC with [Luxor](https://mining.luxor.tech/), a US-based mining pool that operates based on the pay-per-share (PPS) payment method.

**Completing Configuration**

Once you have created a [user account](https://mining.luxor.tech/account/signup) with the mining pool, you will have all the information you need to complete the setup process.

* URL: `stratum+tcp://dcr.luxor.tech:700`
* Worker: `[LuxorUsername].WorkerName` Workername can be anything, but avoid using symbols or special characters as it may be invalid.
* Password: `123`

Once you have filled out the details, click Save & Apply. Setup is now complete.

**Monitoring Results**

It will take about 5 minutes for your workers to appear on the stats page. To find your user, simply go to Luxor, login to your account and navigate to the Workers tab. You should see something like this:

## <img class="dcr-icon" src="/img/dcr-icons/Dcrtl.svg" /> Running the Software

* Decompress and install the software to a place of your choosing.
* Open a command prompt to that path.
* Follow your mining pools instructions for setup.
* Run the miner.
![Monitoring mining results with Luxor pool](/img/pow-mining-guide/monitoring-dashboard.png)