HAC changes

This commit is contained in:
2026-01-27 16:45:21 -06:00
parent fd08510c60
commit fc8286800d
6 changed files with 1000 additions and 1 deletions

View File

@@ -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);