Skip to content
Jhelison Uchoa edited this page Dec 21, 2022 · 5 revisions

Table of contents

About mining

Miners are responsible for processing the transactions in the blockchain. That involves both computing power and luck. When a batch of transactions is processed, the first one responsible for processing it gains a reward, and the fees on those transactions as Epic Cash Coins.

To run the miner, you first must have:

There are three algorithms that help produce the blocks.

Mining can be done using these algorithms:

  • RandomX for general-purpose CPUs.
  • ProgPow for GPUs
  • Cuckoo for ASICs or 11GB+ GPUs

In this guide, we will focus on mining using CPUs and GPUs.

Installation

This will guide you to install the Epic miner on each OS:

Windows

To install the epic wallet on windows follow these steps:

  1. Download the latest Windows files as separate zip files or packaged zip file here: https://epic.tech/downloads/
  2. Extract the files to a convenient location such as C:\Program Files\Epic

You should have the following:

  • Epic-miner (CPU mining)
  • Epic-miner-opencl (only for GPU mining)

Linux

To install the epic wallet on windows follow these steps:

  1. Download the latest version of the epic package here.
  2. Go to the downloaded file and unpack the tar file and install the binary with:
tar -xf epic-miner-<version>-linux-deb.tar.gz
cd epic
sudo dpkg -i <your-epic-miner.deb>

For Linux you should have the following:

  • sudo dpkg -i epic-miner_x.deb
  • sudo dpkg -i epic-miner-opencl-.deb (only for GPU mining)
  • sudo dpkg -i epic-miner-cuda-.deb (only for NVIDIA GPU mining)

Dependencies

If you are planning to mine using GPU (ProgPow and CuckAToo31+), there are two possible ways, mine with OPENCL or CUDA. The main difference between CUDA and OpenCL is that CUDA is a proprietary framework created by Nvidia (working only with NVIDIA GPUs) and OpenCL is open source (working with AMD GPUs, NVIDIA GPUs, and a series of other hardware). The general consensus is that if you have NVIDIA GPUs (that support both CUDA and OpenCL), go with CUDA as it will generate better performance results. More information regarding this can be found here

Dependencies - OpenCL

If you want to mine using OpenCL, you have to install it first. In Debian-based distributions (Debian, Ubuntu, Mint, etc.), to install it just run the following command in the terminal:

sudo apt install ocl-icd-opencl-dev

Dependencies - CUDA

If you want to mine using CUDA (which requires an NVIDIA GPU), make sure that you have the latest NVIDIA drivers installed. Besides that, you will need to have the Cuda toolkit 9+ installed (you can check if you have it installed by executing the command in the terminal: nvcc –version).

Mining

For mining you can choose one of the following:

  • CPU Mining (RandomX)
  • GPU Mining (ProgPoW)

CPU Mining (RandomX)

The optimal number of cores to use is ~1–3 fewer physical cores than your CPU has, and fewer if you have less than 2 MB of L3 cache per core used. For example, use up to four cores if you have 8 MB of L3 cache. Users are recommended to test different numbers.

If you do not want to modify the number of CPU cores used, please skip this section.

Configuring the miner with randomx

Before you run the miner, we may need to change the default configuration:

  1. Open epic-miner folder and edit the epic-miner.toml (configuration file, openable with text editor).
  2. You can replace 3 with the number of physical CPU cores to use in lines:
[mining.randomx_config]
threads = 3
  1. If log file increases in size too fast, users can change log level from “Debug” to “Info” in line:
file_log_level = “Debug”

Running the CPU Miner (RandomX)

To run the CPU miner you can just run:

On Linux

epic-miner

On Windows

epic-miner.exe

GPU Mining (ProgPoW)

OpenCL works for both AMD and NVIDIA GPUs

Configuring the miner with OpenCL

Before running the OpenCL miner, first, you must configure it:

  1. Open epic-miner folder and edit the epic-miner.toml (configuration file, openable with text editor).
  2. In line 40 algorithm = "RandomX", replace RandomX with ProgPow
  3. If using only one GPU, save the epic-miner.toml file and close it, and skip to the section after “Setup GPU Miner (ProgPoW)”. If using more than one GPU, follow the remaining steps in this section.
  4. Find line:
[[mining.gpu_config]]
device = 0
driver = 2
  1. For each additional GPU, copy these three lines and paste them below.
  2. Replace additional instances of device = 0 with the next number. The first GPU is device = 0, the second GPU is device = 1, the third GPU is device = 2, etc. Example of the lines with three GPUs:
[[mining.gpu_config]]
device = 0
driver = 2
[[mining.gpu_config]]
device = 1
driver = 2
[[mining.gpu_config]]
device = 2
driver = 2

Running the GPU Miner (ProgPoW)

To run the GPU miner you can just run:

On Linux

epic-miner-opencl

On Windows

epic-miner-opencl.exe

Addendum

Setup Pool Mining (optional)

Epic Cash is currently available on these mining pools and platforms:

To mine on a stratum mining pool, follow these steps:

  1. Open epic-miner folder and edit the epic-miner.toml (configuration file, openable with text editor).
  2. Find lines:
# listening epic stratum server url
stratum_server_addr = “127.0.0.1:3416”
# login for the stratum server (if required)
#stratum_server_login = “http://192.168.1.100:3415"
# password for the stratum server (if required)
#stratum_server_password = “x”
  1. Remove # from these three lines:
stratum_server_addr = “127.0.0.1:3416”
#stratum_server_login = “http://192.168.1.100:3415"
#stratum_server_password = “x”
  1. In stratum server address, replace 127.0.0.1:3416 with your pool’s stratum address, i.e. epic.icemining.ca:4000
  2. In stratum server login line, replace http://192.168.1.100:3415 with your username in quotes.
  3. In stratum server password line, replace “x” with a strong password in quotes for withdrawing your coins. Do not share the password or lose it, or you may lose your funds. Once the password is set, it cannot be changed.
  4. Run the miner