Skip to content

Commit

Permalink
mining update (#199)
Browse files Browse the repository at this point in the history
  • Loading branch information
SWvheerden committed Jan 24, 2024
1 parent 083fb38 commit e46cb03
Showing 1 changed file with 144 additions and 0 deletions.
144 changes: 144 additions & 0 deletions _updates/2024-01-24-update-127.md
@@ -0,0 +1,144 @@
---
layout: update
tag: Developer Update
date: 2024-01-24
author: swvheerden
thumbnail: update-background.jpg
title: Mining with MinoTari
subtitle: "Getting up and running mining the latest MinoTari"
class: subpage
---

With the newest releases of MinoTari we have changed a bit how to get up and running with mining.

## Install the Minotari Aurora Wallet

Tari Aurora is available on the [Apple App](https://apps.apple.com/us/app/tari-aurora/id1503654828)
and [Google Play](https://play.google.com/store/apps/details?id=com.tari.android.wallet&hl=en&gl=US) stores. This is only for the Stagenet version. If you want to get access to the Nextnet version of Tari Aurora, please see [IOS test flight](https://testflight.apple.com/join/8ccFp84C) or [Android](https://app.bitrise.io/app/a5c3eb49143b3bc5/build/9d61f413-4cd5-4857-bdac-69a48de0da5d/artifact/b288e7e9166571dc/p/88de4dd570cd21f845d2c60c3233a0d5)

# Install the MinoTari Suite

## Windows

Head to the downloads page of the [Tari Website](https://www.tari.com/downloads/) to get the latest installer (tari_suite-...-windows-x64-installer.exe) and execute it; this will guide you through the setup
and install all dependencies. Just double-click the installer and accept all the default prompts. Binaries are available
to download, but the recommended way for Windows is to use the installer.

## OSX or UNIX

Head to the downloads page of the [Tari Website](https://www.tari.com/downloads/) to get the latest binaries for your OS.

### Install XMRig

This is only applicable if you plan to do Monero merge mining. Tari uses XMRig for merge mining and it can be downloaded
from their [website](https://xmrig.com/download).

# Runtime

## MinoTari Node and Console Wallet

### Starting Windows

MinoTari node and Console Wallet can be started by double-clicking on the shortcut.

### Starting with OSX or UNIX

MinoTari node can be started in a new terminal with: `./minotari_node`
Console Wallet can be started in a new terminal with: `./minotari_console_wallet`

### Running

On first run the MinoTari Node or Console Wallet, it will ask you if you want to mine, select `Y` and press enter.

The MinoTari node will ask you on the first run if you want to create an ID, select `Y` and press enter.

The Console Wallet will take you through a setup guide to get started. When asking for the password, note that it does not show typed characters, this is for security reasons.

### Exit

Exit the base node with the following:

```console
Ctrl-C
>> quit
```

Exit the console wallet by pressing `F10` or `ctrl-c`.


## Run the Sha3x miner:

Run MinoTari_miner to start the miner with the base node running.
On startup it will ask for your MinoTari node address, the default should be correct if you have not changed anything, just press enter.
Next, it will ask for your wallet address, enter your console wallet address or Tari Aurora wallet address. Press enter.
It should start mining.

## RandomX/Monero Merge Mining

### Edit the XMRig Config

#### OSX / Linux:

Edit the `config.json` file in your XMRig install folder, and remember to add your own respective Monero wallet address
or select one from above.

```console
{
"autosave": true,
"cpu": true,
"opencl": false,
"cuda": false,
"pools": [{
"coin": "monero",
"url": "127.0.0.1:18081",
"user": "YOUR MONERO WALLET ADDRESS HERE",
"pass": "MyWallet",
"tls": false,
"daemon": true
}]
}
```

#### Windows:

Nothing to do here for Stagenet - this is done automatically when the Windows installer is run, however, if you want to
run mainnet, do the following:

Edit `config\xmrig_config_example_mainnet.json` to add your own Monero mainnet wallet address or select the one above.

Edit `runtime\source_xmrig_env.bat` - change

copy `/y /v "%config_path%\xmrig_config_example_stagenet.json" "%TARI_XMRIG_DIR%\config.json"`

to

copy `/y /v "%config_path%\xmrig_config_example_mainnet.json" "%TARI_XMRIG_DIR%\config.json"`

### Run the Merge Mining Proxy

#### OSX / Linux:

Open a terminal at the XMRig installation location and execute the following:

`minotari_merge_mining_proxy`

#### Windows:

Double-click the shortcut or start it via the Windows menu (`Tari Testnet`).

### Run XMRig

#### OSX / Linux:

Open a terminal at the XMRig installation location and execute the following:

`xmrig`

#### Windows:

Double-click the shortcut or start it via the Windows menu (`Tari Testnet`).

### More information

This is a very limited quick guide to get started with MinoTari, and only shows the basic settings. More detail is
available on the [github page](https://github.com/tari-project/tari).

0 comments on commit e46cb03

Please sign in to comment.