I am using XMRig on Windows 10 to mine Monero and I want to know how to disable donations. Thank you!
-
Not sure about XMRig but for XMR-Stak one had to compile from source with the tweaks.– DaveCommented Jun 5, 2021 at 22:07
-
OK, thanks. I think Windows 10 is different, in that you can edit the source code, but I'm not sure.– g3hollidayCommented Jun 6, 2021 at 3:59
-
You would need to checkout the git, make the source code tweaks, and also make sure you have the tool chain to compile it. The github page should provide 'how to compile' instructions with all requirements needed.– DaveCommented Jun 6, 2021 at 8:13
2 Answers
You should still donate to the devs of xmrig but if you don't wanna you can download the xmrig repository at their github
and edit the file "donate.h" in the directory "src".
Change both: constexpr const int kDefaultDonateLevel = 1; constexpr const int kMinimumDonateLevel = 1; to 0.
Next: Compile it for your system.
You can find the compilation guide for windows at their website
and as Jerzy Brzóska said, you will need to make sure donate-level is set to 0 in the config.json file as well.
-
Thanks! That's great. I still want to donate, but I just wanted to decrease the amount. Commented Jun 7, 2021 at 18:00
-
@g3holliday You can still send some of your moneroj to the xmrig devs since it has it on their website.– user12313Commented Jun 7, 2021 at 19:48
-
OK. I'll try to do that. I really appreciate the help. Thanks :) Commented Jun 7, 2021 at 19:49
-
One also needs to make sure that they have the following set in their config.json:
"donate-level": 0
. From the names of the constants indonate.h
it can be inferred that they are responsible for the default and for the minimum donation. If the default level can be overridden bydonate-level
inconfig.json
then, as in the case of @g3holliday, one needs to set it to 0. Commented Jul 21, 2021 at 12:04 -
Instead of building from scratch, you can download the pre-build Linux binary: github.com/danger89/xmrig/releases Commented Jan 29, 2023 at 15:19
If you don't want to build from scratch and you're using Linux (sorry that you use Windows). Just use my fork and download the latest release from: https://github.com/danger89/xmrig/releases