xmrig v6.3.0 based release

This commit is contained in:
MoneroOcean 2020-07-16 12:23:01 -07:00
commit a334a9a956
25 changed files with 5022 additions and 2262 deletions

View file

@ -36,9 +36,7 @@ static const rapidjson::Value kNullValue;
}
xmrig::JsonChain::JsonChain()
{
}
xmrig::JsonChain::JsonChain() = default;
bool xmrig::JsonChain::add(rapidjson::Document &&doc)
@ -66,8 +64,10 @@ bool xmrig::JsonChain::addFile(const char *fileName)
if (doc.HasParseError()) {
const size_t offset = doc.GetErrorOffset();
size_t line, pos;
size_t line;
size_t pos;
std::vector<std::string> s;
if (Json::convertOffset(fileName, offset, line, pos, s)) {
for (const auto& t : s) {
LOG_ERR("%s", t.c_str());

View file

@ -73,6 +73,16 @@ const char *xmrig::Tags::randomx()
#endif
#ifdef XMRIG_PROXY_PROJECT
const char *xmrig::Tags::proxy()
{
static const char *tag = MAGENTA_BG_BOLD(WHITE_BOLD_S " proxy ");
return tag;
}
#endif
#ifdef XMRIG_FEATURE_CUDA
const char *xmrig::Tags::nvidia()
{

View file

@ -42,6 +42,10 @@ public:
# endif
# endif
# ifdef XMRIG_PROXY_PROJECT
static const char *proxy();
# endif
# ifdef XMRIG_FEATURE_CUDA
static const char *nvidia();
# endif

View file

@ -46,7 +46,8 @@ public:
// Max blob size is 84 (75 fixed + 9 variable), aligned to 96. https://github.com/xmrig/xmrig/issues/1 Thanks fireice-uk.
// SECOR increase requirements for blob size: https://github.com/xmrig/xmrig/issues/913
// Haven (XHV) offshore increases requirements by adding pricing_record struct (192 bytes) to block_header.
static constexpr const size_t kMaxBlobSize = 384;
// Round it up to 408 (136*3) for a convenient keccak calculation in OpenCL
static constexpr const size_t kMaxBlobSize = 408;
static constexpr const size_t kMaxSeedSize = 32;
Job() = default;