Sync changes with the proxy.
This commit is contained in:
parent
ba80e27349
commit
ca535c7813
3 changed files with 18 additions and 4 deletions
|
@ -36,9 +36,7 @@ static const rapidjson::Value kNullValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
xmrig::JsonChain::JsonChain()
|
xmrig::JsonChain::JsonChain() = default;
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
bool xmrig::JsonChain::add(rapidjson::Document &&doc)
|
bool xmrig::JsonChain::add(rapidjson::Document &&doc)
|
||||||
|
@ -66,8 +64,10 @@ bool xmrig::JsonChain::addFile(const char *fileName)
|
||||||
if (doc.HasParseError()) {
|
if (doc.HasParseError()) {
|
||||||
const size_t offset = doc.GetErrorOffset();
|
const size_t offset = doc.GetErrorOffset();
|
||||||
|
|
||||||
size_t line, pos;
|
size_t line;
|
||||||
|
size_t pos;
|
||||||
std::vector<std::string> s;
|
std::vector<std::string> s;
|
||||||
|
|
||||||
if (Json::convertOffset(fileName, offset, line, pos, s)) {
|
if (Json::convertOffset(fileName, offset, line, pos, s)) {
|
||||||
for (const auto& t : s) {
|
for (const auto& t : s) {
|
||||||
LOG_ERR("%s", t.c_str());
|
LOG_ERR("%s", t.c_str());
|
||||||
|
|
|
@ -73,6 +73,16 @@ const char *xmrig::Tags::randomx()
|
||||||
#endif
|
#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
|
#ifdef XMRIG_FEATURE_CUDA
|
||||||
const char *xmrig::Tags::nvidia()
|
const char *xmrig::Tags::nvidia()
|
||||||
{
|
{
|
||||||
|
|
|
@ -42,6 +42,10 @@ public:
|
||||||
# endif
|
# endif
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
|
# ifdef XMRIG_PROXY_PROJECT
|
||||||
|
static const char *proxy();
|
||||||
|
# endif
|
||||||
|
|
||||||
# ifdef XMRIG_FEATURE_CUDA
|
# ifdef XMRIG_FEATURE_CUDA
|
||||||
static const char *nvidia();
|
static const char *nvidia();
|
||||||
# endif
|
# endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue