snoby / tnn-miner

An open source Astrobwtv3 miner

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tnn-miner

An open-source Astrobwtv3 miner

Dependencies are as follows:

  • OpenSSL v3.0.2 (static libs)
  • Boost v1.8.2 (b2 with link=static)
  • UDNS (UNIX only. sudo apt-get install libudns-dev)
  • FMT (header only)

Building the easy way Use the prereqs.sh scripts (one-time only)

./scripts/prereqs.sh

Then build!

./scripts/build.sh

For Ubuntu 24.04: Install development dependencies for Ubuntu 22.04 below, but also install the Boost dev libraries

sudo apt install libboost1.83-all-dev

For Ubuntu 22.04: Install development dependencies

sudo apt install git wget build-essential cmake clang libssl-dev libudns-dev libfmt-dev libc++-dev lld 
# Checkout tnn-miner got from github
git clone https://github.com/Tritonn204/tnn-miner.git
cd tnn-miner
mkdir build
cd build
cmake ..
make -j $(nproc)

This repo can be built from source via cmake once the libraries above are installed on your system

git clone https://github.com/Tritonn204/tnn-miner.git
cd tnn-miner
mkdir build
cd build
cmake ..
make

MinGW will work, just swap "make" with "mingw32-make".

Do note that CMakeLists.txt will need to be altered if your libraries are installed at neither C:/mingw64 nor the root dir of this project on Windows.

USAGE

This miner can be activated from the command line with the following parameters. Simply adjust the syntax for use with your shell or terminal of choice!

General:
  --help                  produce help message
  --dero                  Will mine Dero
  --xelis                 Will mine Xelis
  --broadcast             Creates an http server to query miner stats
  --testnet               Adjusts in-house parameters to mine on testnets
  --daemon-address arg    Node/pool URL or IP address to mine to
  --port arg              The port used to connect to the node
  --wallet arg            Wallet address for receiving mining rewards
  --threads arg           The amount of mining threads to create, default is 1
  --dev-fee arg           Your desired dev fee percentage, default is 2.5,
                          minimum is 1
  --no-lock               Disables CPU affinity / CPU core binding

Dero:
  --lookup                Mine with lookup tables instead of computation
  --dero-benchmark arg    Runs a mining benchmark for <arg> seconds (adheres to
                          -t threads option)

DEBUG:
  --dero-test             Runs a set of tests to verify AstrobwtV3 is working
                          (1 test expected to fail)
  --op arg                Sets which branch op to benchmark (0-255), benchmark
                          will be skipped if unspecified
  --len arg               Sets length of the processed chunk in said benchmark
                          (default 15)
  --sabench               Runs a benchmark for divsufsort on snapshot files in
                          the 'tests' directory

Xelis:
  --xatum                 Required for mining to Xatum pools on Xelis
  --xelis-bench           Run a benchmark of xelis-hash with 1 thread
  --xelis-test            Run the xelis-hash tests from the official source
                          code
  --worker-name arg       Sets the worker name for this instance when mining
                          Xelis

If the miner is run without any args, a CLI wizard will simply ask you to provide the required options one at a time.

If you intend to build from source without dev fees, please consider a one-time donation to the Dero address tritonn (Dero Name Service).

Dev fees allow me to invest more time into maintaining, updating, and improving tnn-miner.

About

An open source Astrobwtv3 miner

License:MIT License


Languages

Language:C 98.4%Language:C++ 1.6%Language:CMake 0.0%Language:Cuda 0.0%Language:Shell 0.0%