Skip to content

Latest commit

 

History

History
52 lines (35 loc) · 2.35 KB

pow-miner-windows-howto.md

File metadata and controls

52 lines (35 loc) · 2.35 KB

GPU miner for Windows how-to

TONLIB CLI wrapper with embedded GPU miner

The process automatically receives tasks from the specified <giver_addess>. During operation the process checks the parameters of the giver every 5 seconds. If they change, the task is restarted. If a solution is found, it sends it to the selected <giver_addess> and <my_address> is rewarded.

If you want more flexibility or control you can also use the pow-miner-cuda.exe (pow-miner-opencl.exe) as described at pow-miner-howto.md.

Step by step:

  1. Read basic info about mining on the https://ton.org/mining page. Here you can find giver addresses and some stats.
  2. Install GPU Drivers:
  3. Download Wallet app from https://ton.org/wallets and create a wallet for the rewards.
  4. Download last Windows release from https://github.com/tontechio/pow-miner-gpu/releases
  5. Download last global config from https://newton-blockchain.github.io/global.config.json
  6. Invoke the tonlib-cuda-cli.exe (tonlib-opencl-cli.exe) utility as follows:
> tonlib-cuda-cli.exe -v 3 -C <global-config> -e "pminer start <giver_addess> <my_address> <gpu-id> [boost-factor] [platform-id]"

TONLIB CLI logging

Windows 10 supports ANSI colors since v1511. For earlier versions of Windows installing ANSICON will enable ANSI colors in cmd.exe.

To redirect the output to a file, add -l pminer.log to the command:

> tonlib-cuda-cli.exe -v 3 -C global.config.json -e "pminer start Ef-FV4QTxLl-7Ct3E6MqOtMt-RGXMxi27g4I645lw6MTWg0f kQBWkNKqzCAwA9vjMwRmg7aY75Rf8lByPA9zKXoqGkHi8SM7 0 32" -l pminer.log

TONLIB CLI automation

Actually, tonlib-*-cli miner does not know how to restart itself. If the selected lightserver does not respond, the miner terminates with code 3. This allows you to re-run it with another random lightserver from the config.

We suggest running tonlib-*-cli with an automatic restart in one of two ways:

Batch Script

Ready-to-use batch files can be found here: https://github.com/tontechio/pow-miner-win-util

As a service

TBD