MiningCore Setup Tutorial on Windows 10

This guide walks you through setting up MiningCore on a Windows 10 machine step-by-step. Follow these instructions to get your mining pool operational quickly and efficiently.

Important Notes

  • • During PostgreSQL installation, you do not need to install StackBuilder
  • • Ensure your coin's node is fully synced before launching the pool
  • • Replace all placeholder values with your actual configuration
1

Install PostgreSQL

Download and install PostgreSQL 10 or the latest version from the official website.

https://www.postgresql.org/download/
2

Launch pSQL Shell

  1. Open the Windows search bar and type psql
  2. Launch the pSQL Shell
  3. Login using the credentials you set during PostgreSQL installation:
    • Username: postgres (default)
    • Password: (the one you set during install)
3

Create Database Role and Schema

In the pSQL Shell, run the following commands (replace myPassword with your actual password):

CREATE ROLE miningcore WITH LOGIN ENCRYPTED PASSWORD 'myPassword';
CREATE DATABASE miningcore OWNER miningcore;
4

Run Database Setup Scripts

Locate the following files on your PC:

  • createdb.sql
  • createdb_postgresql_11_appendix.sql

Then, in the pSQL Shell, run these commands (replace with actual paths):

\i c:/Users/YourUser/Desktop/miningcore/src/Miningcore/Persistence/Postgres/Scripts/createdb.sql
\i c:/Users/YourUser/Desktop/miningcore/src/Miningcore/Persistence/Postgres/Scripts/createdb_postgresql_11_appendix.sql
5

Create Pool Table

For each coin you setup, create a partition of the shares table:

CREATE TABLE shares_coinName PARTITION OF shares FOR VALUES IN ('coinName');

🔁 Replace coinName with your desired coin identifier (e.g., btc, eth).

6

Configure the Pool

  1. Go to your MiningCore build directory
  2. Create a coinName.json config file for your coin
  3. Inside the config file:
    • Ensure "logFile" and "apiLogFile" under "logging" are filled in
    • Example: coinName_core.log, coinName_api.log
7

Create a Startup Batch File

In your MiningCore root directory, create a .bat file with the following content (adjust for your coin name):

cd build
./Miningcore -c coinName.json
8

All Done!

MiningCore is now set up and ready to go!

Remember to ensure your coin's node is fully synced before launching the pool. Happy mining! ⛏️

Ergo Platform - Sustainable Blockchain for Contractual Money | Ergo Platform