Skip to content

Commit 5d222ff

Browse files
committed
Merge xmrig-proxy v6.15.1 into master
2 parents cad5140 + 4e565a3 commit 5d222ff

File tree

6 files changed

+9
-12
lines changed

6 files changed

+9
-12
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# v6.15.1
2+
- [#2586](https://github.com/xmrig/xmrig/pull/2586) Fixed Windows 7 compatibility.
3+
14
# v6.15.0
25
- [#463](https://github.com/xmrig/xmrig-proxy/pull/463) Added `--spend-secret-key` to command line option.
36
- [#465](https://github.com/xmrig/xmrig-proxy/pull/465) Added ZeroMQ support for solo mining.

src/base/crypto/Algorithm.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ class Algorithm
177177
static inline constexpr bool isCN(Id id) { return (id & 0xff000000) == CN_ANY; }
178178
static inline constexpr Id base(Id id) { return isCN(id) ? static_cast<Id>(CN_0 | (id & 0xff00)) : INVALID; }
179179
static inline constexpr size_t l2(Id id) { return family(id) == RANDOM_X ? (1U << ((id >> 8) & 0xff)) : 0U; }
180-
static inline constexpr size_t l3(Id id) { return 1U << ((id >> 16) & 0xff); }
180+
static inline constexpr size_t l3(Id id) { return 1ULL << ((id >> 16) & 0xff); }
181181
static inline constexpr uint32_t family(Id id) { return id & (isCN(id) ? 0xffff0000 : 0xff000000); }
182182

183183
inline bool isCN() const { return isCN(m_id); }

src/base/io/Env.cpp

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -143,17 +143,10 @@ xmrig::String xmrig::Env::get(const String &name, const std::map<String, String>
143143
xmrig::String xmrig::Env::hostname()
144144
{
145145
char buf[UV_MAXHOSTNAMESIZE]{};
146-
size_t size = sizeof(buf);
147146

148-
# if UV_VERSION_HEX >= 0x010c00
149-
if (uv_os_gethostname(buf, &size) == 0) {
147+
if (gethostname(buf, sizeof(buf)) == 0) {
150148
return static_cast<const char *>(buf);
151149
}
152-
# else
153-
if (gethostname(buf, size) == 0) {
154-
return static_cast<const char *>(buf);
155-
}
156-
# endif
157150

158151
return {};
159152
}

src/base/kernel/Entry.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ xmrig::Entry::Id xmrig::Entry::get(const Process &process)
141141
return Usage;
142142
}
143143

144-
if (args.hasArg("-V") || args.hasArg("--version")) {
144+
if (args.hasArg("-V") || args.hasArg("--version") || args.hasArg("--versions")) {
145145
return Version;
146146
}
147147

src/proxy/splitters/donate/DonateSplitter.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#define XMRIG_DONATESPLITTER_H
2727

2828

29+
#include <cstddef>
2930
#include <cstdint>
3031
#include <map>
3132

src/version.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@
2222
#define APP_ID "xmrig-proxy"
2323
#define APP_NAME "xmrig-proxy"
2424
#define APP_DESC "XMRig Stratum proxy"
25-
#define APP_VERSION "6.15.0-mo1"
25+
#define APP_VERSION "6.15.1-mo1"
2626
#define APP_DOMAIN "xmrig.com"
2727
#define APP_SITE "www.xmrig.com"
2828
#define APP_COPYRIGHT "Copyright (C) 2016-2021 xmrig.com"
2929
#define APP_KIND "proxy"
3030

3131
#define APP_VER_MAJOR 6
3232
#define APP_VER_MINOR 15
33-
#define APP_VER_PATCH 0
33+
#define APP_VER_PATCH 1
3434

3535
#ifdef _MSC_VER
3636
# if (_MSC_VER >= 1920)

0 commit comments

Comments
 (0)