HAC changes
This commit is contained in:
@@ -39,6 +39,7 @@
|
||||
|
||||
#ifdef XMRIG_FEATURE_HTTP
|
||||
# include "base/net/stratum/DaemonClient.h"
|
||||
# include "base/net/stratum/HushClient.h"
|
||||
# include "base/net/stratum/SelfSelectClient.h"
|
||||
#endif
|
||||
|
||||
@@ -239,7 +240,12 @@ xmrig::IClient *xmrig::Pool::createClient(int id, IClientListener *listener) con
|
||||
}
|
||||
# ifdef XMRIG_FEATURE_HTTP
|
||||
else if (m_mode == MODE_DAEMON) {
|
||||
client = new DaemonClient(id, listener);
|
||||
// Use HushClient for Hush Asset Chains (HAC) with RandomX
|
||||
if (m_coin == Coin::HUSH) {
|
||||
client = new HushClient(id, listener);
|
||||
} else {
|
||||
client = new DaemonClient(id, listener);
|
||||
}
|
||||
}
|
||||
else if (m_mode == MODE_SELF_SELECT) {
|
||||
client = new SelfSelectClient(id, Platform::userAgent(), listener, m_submitToOrigin);
|
||||
|
||||
Reference in New Issue
Block a user