Skip to content

Commit

Permalink
Added progressive algo perf upstream threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
MoneroOcean committed Apr 22, 2021
1 parent 290bc9c commit 86c738c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/base/net/stratum/AlgoSwitch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ bool AlgoSwitch::try_miner(const Miner* miner, const int upstream_count) const {
return false;
}
const float ratio = i1->second / m_miner_algo_perfs.size() / i2->second;
if (ratio > (1.0f + (float)(m_percent) / 100.0f) || ratio < (1.0f - (float)(m_percent) / 100.0f)) return false;
if (ratio > (1.0f + (float)(m_percent + upstream_count) / 100.0f) || ratio < (1.0f - (float)(m_percent + upstream_count) / 100.0f)) return false;
}
return true;
}
Expand Down
2 changes: 1 addition & 1 deletion src/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"retries": 2,
"retry-pause": 1,
"reuse-timeout": 0,
"algo-perf-same-threshold": 50,
"algo-perf-same-threshold": 20,
"tls": {
"enabled": true,
"protocols": null,
Expand Down
2 changes: 1 addition & 1 deletion src/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#define APP_ID "xmrig-proxy"
#define APP_NAME "xmrig-proxy"
#define APP_DESC "XMRig Stratum proxy"
#define APP_VERSION "6.12.0-mo1"
#define APP_VERSION "6.12.0-mo2"
#define APP_DOMAIN "xmrig.com"
#define APP_SITE "www.xmrig.com"
#define APP_COPYRIGHT "Copyright (C) 2016-2020 xmrig.com"
Expand Down

0 comments on commit 86c738c

Please sign in to comment.