Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
xmrig committed Oct 5, 2021
2 parents d04556c + ecba7aa commit 86ab704
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 17 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# v6.15.1
- [#2586](https://github.com/xmrig/xmrig/pull/2586) Fixed Windows 7 compatibility.

# v6.15.0
- [#463](https://github.com/xmrig/xmrig-proxy/pull/463) Added `--spend-secret-key` to command line option.
- [#465](https://github.com/xmrig/xmrig-proxy/pull/465) Added ZeroMQ support for solo mining.
Expand Down
5 changes: 0 additions & 5 deletions src/base/crypto/Algorithm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,6 @@ const char *Algorithm::kKAWPOW_RVN = "kawpow";
#define ALGO_ALIAS_AUTO(ALGO) { Algorithm::k##ALGO, Algorithm::ALGO }


#ifdef _MSC_VER
# define strcasecmp _stricmp
#endif


static const std::map<uint32_t, const char *> kAlgorithmNames = {
ALGO_NAME(CN_0),
ALGO_NAME(CN_1),
Expand Down
2 changes: 1 addition & 1 deletion src/base/crypto/Algorithm.h
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ class Algorithm
static inline constexpr bool isCN(Id id) { return (id & 0xff000000) == CN_ANY; }
static inline constexpr Id base(Id id) { return isCN(id) ? static_cast<Id>(CN_0 | (id & 0xff00)) : INVALID; }
static inline constexpr size_t l2(Id id) { return family(id) == RANDOM_X ? (1U << ((id >> 8) & 0xff)) : 0U; }
static inline constexpr size_t l3(Id id) { return 1U << ((id >> 16) & 0xff); }
static inline constexpr size_t l3(Id id) { return 1ULL << ((id >> 16) & 0xff); }
static inline constexpr uint32_t family(Id id) { return id & (isCN(id) ? 0xffff0000 : 0xff000000); }

inline bool isCN() const { return isCN(m_id); }
Expand Down
9 changes: 1 addition & 8 deletions src/base/io/Env.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,17 +143,10 @@ xmrig::String xmrig::Env::get(const String &name, const std::map<String, String>
xmrig::String xmrig::Env::hostname()
{
char buf[UV_MAXHOSTNAMESIZE]{};
size_t size = sizeof(buf);

# if UV_VERSION_HEX >= 0x010c00
if (uv_os_gethostname(buf, &size) == 0) {
if (gethostname(buf, sizeof(buf)) == 0) {
return static_cast<const char *>(buf);
}
# else
if (gethostname(buf, size) == 0) {
return static_cast<const char *>(buf);
}
# endif

return {};
}
2 changes: 1 addition & 1 deletion src/base/kernel/Entry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ xmrig::Entry::Id xmrig::Entry::get(const Process &process)
return Usage;
}

if (args.hasArg("-V") || args.hasArg("--version")) {
if (args.hasArg("-V") || args.hasArg("--version") || args.hasArg("--versions")) {
return Version;
}

Expand Down
1 change: 1 addition & 0 deletions src/proxy/splitters/donate/DonateSplitter.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#define XMRIG_DONATESPLITTER_H


#include <cstddef>
#include <cstdint>
#include <map>

Expand Down
4 changes: 2 additions & 2 deletions src/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@
#define APP_ID "xmrig-proxy"
#define APP_NAME "xmrig-proxy"
#define APP_DESC "XMRig Stratum proxy"
#define APP_VERSION "6.15.0"
#define APP_VERSION "6.15.1-dev"
#define APP_DOMAIN "xmrig.com"
#define APP_SITE "www.xmrig.com"
#define APP_COPYRIGHT "Copyright (C) 2016-2021 xmrig.com"
#define APP_KIND "proxy"

#define APP_VER_MAJOR 6
#define APP_VER_MINOR 15
#define APP_VER_PATCH 0
#define APP_VER_PATCH 1

#ifdef _MSC_VER
# if (_MSC_VER >= 1920)
Expand Down

0 comments on commit 86ab704

Please sign in to comment.