GithubHelp home page GithubHelp logo

xdagger / xdagrandomxminer Goto Github PK

View Code? Open in Web Editor NEW
12.0 2.0 5.0 745 KB

Standalone RandomX CPU miner for XDAG (Dagger Coin)

License: GNU General Public License v3.0

C 14.93% C++ 79.03% Makefile 0.13% CMake 0.47% Assembly 5.10% PowerShell 0.32%

xdagrandomxminer's Introduction

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

xdagrandomxminer's People

Contributors

fossabot avatar gongyunlong avatar jonano614 avatar protovist avatar swordlet avatar viktorvillalobos avatar xrdavies avatar yuguagua avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

xdagrandomxminer's Issues

Illegal instruction (core dumped)

OS: CentOS 7.9 or Ubuntu 20.04
Download https://github.com/XDagger/XdagRandomxMiner/releases/download/0.4.2/LinuxRandomxMiner.zip
Run ./DaggerRandomxMiner -cpu -M -t 4
Get error: Illegal instruction (core dumped)

I've also try to build the system on Ubuntu 20.04, and cmake and make, then get error:

[100%] Linking CXX executable DaggerRandomxMiner
/usr/bin/ld: CMakeFiles/DaggerRandomxMiner.dir/RandomX_Miner/Core/Farm.o: in function `boost::asio::detail::posix_event::posix_event()':
Farm.cpp:(.text._ZN5boost4asio6detail11posix_eventC2Ev[_ZN5boost4asio6detail11posix_eventC5Ev]+0x51): undefined reference to `pthread_condattr_setclock'
/usr/bin/ld: CMakeFiles/DaggerRandomxMiner.dir/RandomX_Miner/Core/Farm.o: in function `boost::asio::detail::posix_thread::~posix_thread()':
Farm.cpp:(.text._ZN5boost4asio6detail12posix_threadD2Ev[_ZN5boost4asio6detail12posix_threadD5Ev]+0x2a): undefined reference to `pthread_detach'
/usr/bin/ld: CMakeFiles/DaggerRandomxMiner.dir/RandomX_Miner/Core/Farm.o: in function `boost::asio::detail::posix_thread::join()':
Farm.cpp:(.text._ZN5boost4asio6detail12posix_thread4joinEv[_ZN5boost4asio6detail12posix_thread4joinEv]+0x2f): undefined reference to `pthread_join'
/usr/bin/ld: CMakeFiles/DaggerRandomxMiner.dir/RandomX_Miner/Core/Farm.o: in function `boost::asio::detail::posix_thread::start_thread(boost::asio::detail::posix_thread::func_base*)':
Farm.cpp:(.text._ZN5boost4asio6detail12posix_thread12start_threadEPNS2_9func_baseE[_ZN5boost4asio6detail12posix_thread12start_threadEPNS2_9func_baseE]+0x3e): undefined reference to `pthread_create'
/usr/bin/ld: CMakeFiles/DaggerRandomxMiner.dir/RandomX_Miner/Core/Farm.o: in function `boost::asio::detail::posix_signal_blocker::posix_signal_blocker()':
Farm.cpp:(.text._ZN5boost4asio6detail20posix_signal_blockerC2Ev[_ZN5boost4asio6detail20posix_signal_blockerC5Ev]+0x68): undefined reference to `pthread_sigmask'
/usr/bin/ld: CMakeFiles/DaggerRandomxMiner.dir/RandomX_Miner/Core/Farm.o: in function `boost::asio::detail::posix_signal_blocker::~posix_signal_blocker()':
Farm.cpp:(.text._ZN5boost4asio6detail20posix_signal_blockerD2Ev[_ZN5boost4asio6detail20posix_signal_blockerD5Ev]+0x31): undefined reference to `pthread_sigmask'
/usr/bin/ld: CMakeFiles/DaggerRandomxMiner.dir/RandomX_Miner/Core/Log.o: in function `XDag::GetThreadName[abi:cxx11]()':
Log.cpp:(.text+0x51f): undefined reference to `pthread_getname_np'
/usr/bin/ld: CMakeFiles/DaggerRandomxMiner.dir/RandomX_Miner/Core/Log.o: in function `XDag::SetThreadName(char const*)':
Log.cpp:(.text+0x5d0): undefined reference to `pthread_setname_np'
/usr/bin/ld: CMakeFiles/DaggerRandomxMiner.dir/RandomX_Miner/Core/MinerManager.o: in function `std::thread::thread<boost::_bi::bind_t<unsigned long, boost::_mfi::mf0<unsigned long, boost::asio::io_context>, boost::_bi::list1<boost::_bi::value<boost::asio::io_context*> > >, , void>(boost::_bi::bind_t<unsigned long, boost::_mfi::mf0<unsigned long, boost::asio::io_context>, boost::_bi::list1<boost::_bi::value<boost::asio::io_context*> > >&&)':
MinerManager.cpp:(.text._ZNSt6threadC2IN5boost3_bi6bind_tImNS1_4_mfi3mf0ImNS1_4asio10io_contextEEENS2_5list1INS2_5valueIPS7_EEEEEEJEvEEOT_DpOT0_[_ZNSt6threadC5IN5boost3_bi6bind_tImNS1_4_mfi3mf0ImNS1_4asio10io_contextEEENS2_5list1INS2_5valueIPS7_EEEEEEJEvEEOT_DpOT0_]+0x33): undefined reference to `pthread_create'
/usr/bin/ld: CMakeFiles/DaggerRandomxMiner.dir/RandomX_Miner/Core/Worker.o: in function `std::thread::thread<XDag::Worker::StartWorking()::{lambda()#1}, , void>(XDag::Worker::StartWorking()::{lambda()#1}&&)':
Worker.cpp:(.text+0x633): undefined reference to `pthread_create'
/usr/bin/ld: CMakeFiles/DaggerRandomxMiner.dir/RandomX_Miner/XDagCore/XTaskProcessor.o: in function `std::thread::thread<void (*)(randomx_dataset*, randomx_cache*, unsigned long, unsigned long), randomx_dataset*&, randomx_cache*&, unsigned int&, unsigned long&, void>(void (*&&)(randomx_dataset*, randomx_cache*, unsigned long, unsigned long), randomx_dataset*&, randomx_cache*&, unsigned int&, unsigned long&)':
XTaskProcessor.cpp:(.text._ZNSt6threadC2IPFvP15randomx_datasetP13randomx_cachemmEJRS2_RS4_RjRmEvEEOT_DpOT0_[_ZNSt6threadC5IPFvP15randomx_datasetP13randomx_cachemmEJRS2_RS4_RjRmEvEEOT_DpOT0_]+0x4f): undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/DaggerRandomxMiner.dir/build.make:491: DaggerRandomxMiner] Error 1
make[1]: *** [CMakeFiles/Makefile2:76: CMakeFiles/DaggerRandomxMiner.dir/all] Error 2
make: *** [Makefile:84: all] Error 2

Any solutions?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.