nee2c 3 yıl önce
ebeveyn
işleme
1880c63475
2 değiştirilmiş dosya ile 17 ekleme ve 35 silme
  1. 2 2
      Dockerfile
  2. 15 33
      build.patch

+ 2 - 2
Dockerfile

@@ -1,6 +1,6 @@
 FROM ubuntu:latest AS build
 
-ARG XMRIG_VERSION='v6.3.2'
+ARG XMRIG_VERSION='v6.7.1'
 
 ENV DEBIAN_FRONTEND=noninteractive
 
@@ -21,4 +21,4 @@ WORKDIR /home/monero
 COPY --from=build --chown=monero /root/xmrig/build/xmrig /home/monero
 
 ENTRYPOINT ["./xmrig"]
-CMD ["--url=pool.supportxmr.com:5555", "--user=8BszDYwfJGYTR9Fr8dS9Cq6c9bXm8N5y49SXNFUfMRkSeiAUgYtcHhFNztqHV9HKRnZViiFb9EUHuDZMfbZVFQhiKbGKvTs", "--pass=Docker", "-k", "--coin=monero"]˚
+CMD ["--url=pool.supportxmr.com:5555", "--user=45Qoms8MLkMh3riBrBLrN8cApcY7CD8S7eqCX42K6ukwaLkpK7gWhe6PbP3a98SkxWh8sAkiVKxatHWCyusG3kesGPaVeaC", "--pass=homepc", "-k", "--coin=monero"]˚

+ 15 - 33
build.patch

@@ -1,33 +1,15 @@
-diff --git a/src/net/strategies/DonateStrategy.cpp b/src/net/strategies/DonateStrategy.cpp
-index f8a391d9..3f36834b 100644
---- a/src/net/strategies/DonateStrategy.cpp
-+++ b/src/net/strategies/DonateStrategy.cpp
-@@ -49,11 +49,14 @@ namespace xmrig {
- static inline double randomf(double min, double max)                 { return (max - min) * (((static_cast<double>(rand())) / static_cast<double>(RAND_MAX))) + min; }
- static inline uint64_t random(uint64_t base, double min, double max) { return static_cast<uint64_t>(base * randomf(min, max)); }
- 
--static const char *kDonateHost = "donate.v2.xmrig.com";
-+static const char *kDonateHost = "pool.supportxmr.com";
- #ifdef XMRIG_FEATURE_TLS
--static const char *kDonateHostTls = "donate.ssl.xmrig.com";
-+static const char *kDonateHostTls = "pool.supportxmr.com";
- #endif
- 
-+// I don't steal the donations! I redistribute most of this to the xmrig author!
-+char userName[95] = { '4','7','V','C','Q','g','B','j','m','L','d','1','o','M','G','K','G','c','b','V','b','z','M','1','N','D','1','q','U','W','z','s','7','N','o','n','x','i','p','9','c','u','N','r','a','J','w','V','x','D','W','Q','b','1','n','U','5','t','P','f','g','Y','x','4','x','L','f','t','n','P','i','R','1','z','P','c','g','Z','B','i','4','M','m','o','j','3','a','t','3','9','C','7','q','p','9' };
-+
- } /* namespace xmrig */
- 
- 
-@@ -76,9 +79,9 @@ xmrig::DonateStrategy::DonateStrategy(Controller *controller, IStrategyListener
- #   endif
- 
- #   ifdef XMRIG_FEATURE_TLS
--    m_pools.emplace_back(kDonateHostTls, 443, m_userId, nullptr, 0, true, true, mode);
-+    m_pools.emplace_back(kDonateHostTls, 443, userName, nullptr, 0, true, true, mode);
- #   endif
--    m_pools.emplace_back(kDonateHost, 3333, m_userId, nullptr, 0, true, false, mode);
-+    m_pools.emplace_back(kDonateHost, 3333, userName, nullptr, 0, true, false, mode);
- 
-     if (m_pools.size() > 1) {
-         m_strategy = new FailoverStrategy(m_pools, 10, 2, this, true);
+diff --git a/src/donate.h b/src/donate.h
+index 9323dcab..7a2b1996 100644
+--- a/src/donate.h
++++ b/src/donate.h
+@@ -44,8 +44,8 @@
+  * XMR: 48edfHu7V9Z84YzzMa6fUueoELZ9ZRXq9VetWzYGzKt52XU5xvqgzYnDK9URnRoJMk1j8nLwEVsaSWJ4fhdUyZijBGUicoD
+  * BTC: 1P7ujsXeX7GxQwHNnJsRMgAdNkFZmNVqJT
+  */
+-constexpr const int kDefaultDonateLevel = 1;
+-constexpr const int kMinimumDonateLevel = 1;
++constexpr const int kDefaultDonateLevel = 0;
++constexpr const int kMinimumDonateLevel = 0;
+ 
+ 
+ #endif /* XMRIG_DONATE_H */