Skip to content

XDagger/XdagRandomxMiner

Repository files navigation

DaggerRandomxMiner

FOSSA Status

Stand-alone RandomX CPU/GPU miner for XDAG (Dagger coin)

This miner does not require files wallet.dat and dnet_key.dat. Storage folder is still necessary.

Using https://github.com/tevador/RandomX master@ac574e3

Launch parameters:

1) CPU benchmark: DaggerMiner.exe -cpu -M -t 4

2) CPU mining: DaggerMiner.exe -cpu -a <WALLET_ADDRESS> -p <POOL_ADDRESS> -t 8  

The project supports Windows, Linux and Mac OS now.
Binary file available for Window and Linux
Download

How to build

Windows:

The project has dependencies: Boost and OpenSSL Boost and OpenSSL libraries are included by Nuget Manager and should be downloaded automatically.

Need special privilege called as SeLockMemoryPrivilege to use huge pages.

Enable the Lock Pages in Memory Option (Windows)

On Windows 10 once you obtain the privilege, admin rights no longer required to use huge pages, but on Windows 7 admin rights always required.

Launch parameters:

1) CPU benchmark: DaggerMiner.exe -cpu -M -t 4

2) CPU mining: DaggerMiner.exe -cpu -a <WALLET_ADDRESS> -p <POOL_ADDRESS> -t 8  

3) CPU huge pages mining: DaggerMiner.exe -cpu -L -a <WALLET_ADDRESS> -p <POOL_ADDRESS> -t 8  

Linux:

Check dependencies: libboost-dev, libboost-system-dev, openssl, librandomx.

Download this source code, then cd to source folder. Build with cmake.

Enable huge pages

Temporary (until next reboot) reserve huge pages

sudo sysctl -w vm.nr_hugepages=1280

Permanent huge pages reservation

sudo bash -c "echo vm.nr_hugepages=1280 >> /etc/sysctl.conf"

Launch parameters:

1) CPU benchmark: ./DaggerMiner -cpu -M -t 4

2) CPU mining: ./DaggerMiner -cpu -a <WALLET_ADDRESS> -p <POOL_ADDRESS> -t 8

3) CPU huge pages mining: ./DaggerMiner -cpu -L -a <WALLET_ADDRESS> -p <POOL_ADDRESS> -t 8

Mac:

Install Boost with brew.
Open XCode project to build Mac OS version.

Launch parameters:

1) CPU benchmark: ./DaggerMiner -cpu -M -t 4

2) CPU mining: ./DaggerMiner -cpu -a <WALLET_ADDRESS> -p <POOL_ADDRESS> -t 8

This miner not support GPU yet.

License

FOSSA Status