Skip to content

Commit

Permalink
Use P2Pool for XMRig Guide
Browse files Browse the repository at this point in the history
Change XMRig pool mining guide to p2pool.
  • Loading branch information
HardenedSteel committed Sep 10, 2024
1 parent 601b25b commit 35368fc
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 48 deletions.
2 changes: 1 addition & 1 deletion _i18n/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ user-guides:
purchasing-storing: How to create a Monero paper wallet
verify-allos: How to use the command line to verify your Monero CLI/GUI software is safe (advanced)
verify-windows: How to verify your Monero CLI/GUI software is safe on Windows (beginner)
mine-on-pool: How to mine on a pool with XMRig
mine-on-pool: How to mine on P2Pool with XMRig
solo-mine: How to solo mine with Monero GUI
locked-funds: How to fix locked up funds
restore-account: How to restore a wallet from mnemonic seed
Expand Down
64 changes: 18 additions & 46 deletions _i18n/en/resources/user-guides/mine-to-pool.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,57 +16,34 @@ hardware that you have available. There are many sites, such as
that allow you to enter your miner's speed and power draw, and it will
show you the profit (or loss) per week/month.

## Download Miner
## Downloading The Required Software

The first step is to download mining software onto your computer.
The first step is to downloading the miner and P2Pool software onto your computer;

### Windows
* You can download XMRig from: [XMRig.com](https://xmrig.com/download)
* You can download P2Pool from: [P2Pool Github Repo](https://github.com/SChernykh/p2pool/releases/latest)

The XMRig developer provides pre-built binaries for Windows
users. They are available on the [GitHub release
page](https://github.com/xmrig/xmrig/releases/latest).
## Configuring P2Pool

Scroll down until you see `xmrig-VERSION-msvc-win64.zip`. Download
this file and extract the archive somewhere memorable, like your desktop.
1. Open port `37889` in your firewall for better connectivity. (Optional)
2. Run `./p2pool --host NODE_IP_ADDRESS --wallet WALLET_ADDRESS`.

### Ubuntu Linux
* It's suggested to run your own node, if that's the case `NODE_IP_ADDRESS` should be `127.0.0.1`.
* `WALLET_ADDRESS` must be your main address but not subaddress. (Main addresses start with `4`, subaddresses start with `8`)

The XMRig developer provides pre-built binaries for Ubuntu Bionic (18.04) and Focal (20.04). They may work on other Ubuntu versions, and on other
distributions, but this is not guaranteed.
3. Wait for the synchronization, It should take no more than 5-10 minutes.

These binaries are available on the [GitHub release
page](https://github.com/xmrig/xmrig/releases/latest).
See the [official docs](https://github.com/SChernykh/p2pool/blob/master/docs/COMMAND_LINE.MD) for more details about P2Pool.

Scroll down to 'Assets' until you see the correct version for your system. Download
this file, extract the archive somewhere memorable, like your desktop.
## Configuring XMRig

### Other distributions and operating systems

Binaries are available for various distributions and operating systems, but you can also build the miner by yourself. Take a look at [XMrig's docs](https://xmrig.com/docs/miner)

## Selecting a pool

There are lots of pools to choose from. You can find a list at
[miningpoolstats.stream/monero](https://miningpoolstats.stream/monero).

Choosing a larger pool means that you will see more frequent (but
smaller) payouts, but choosing a smaller pools helps keep the network
decentralised. [Miners will not lose any revenue by mining on a
smaller pool](https://redd.it/g6uh2l).

## Configuring the miner

See the [official docs](https://xmrig.com/docs/miner/config), for instructions and suggestions.

## Starting the miner

Windows users can double click on xmrig.exe. Users of other operating
systems should `cd` into the directory that contains XMRig and then
type `./xmrig` and press return.
Run `./xmrig -o 127.0.0.1:3333` to start mining.

If you see green messages saying that shares have been accepted,
congratulations, everything is working!

See the [official docs](https://xmrig.com/docs/miner/config) for more details about XMRig.

## Troubleshooting

### Anti-virus keeps removing XMRig
Expand Down Expand Up @@ -125,7 +102,7 @@ Huge pages are not supported on macOS.

### Balance Not Increasing

Most pools are <abbr title="Pay Per Last N Shares">PPLNS</abbr> pools,
P2Pool uses <abbr title="Pay Per Last N Shares">PPLNS</abbr> system,
which means that you only get paid when a miner on the pool finds a
block. If the pool you are mining on is small, this can take a few
days to weeks.
Expand All @@ -142,10 +119,5 @@ Libera](https://web.libera.chat/?channel=#monero-pools) or Matrix (#monero-pools

## Going Futher

* Consider using a subaddress just for mining, to prevent your address
being linked to different services.
* [Consider using Tor to connect to the
pool](https://xmrig.com/docs/miner/tor) (or to a hidden service pool
like HashVault, RespectXMR and MoneroOcean). This hides mining
activity from your ISP, and prevents the pool from knowing who you
are.
* [Consider using Tor to connect to the pool](https://xmrig.com/docs/miner/tor). This hides mining
activity from your ISP, and prevents the pool from knowing who you are.
2 changes: 1 addition & 1 deletion resources/user-guides/mine-to-pool.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: user-guide
title: How to mine on a pool with XMRig
title: How to mine on P2Pool with XMRig
permalink: /resources/user-guides/mine-to-pool.html
outdated: False
---
Expand Down

0 comments on commit 35368fc

Please sign in to comment.