From 18b514351d20cdd982611b4533adb7426b817e49 Mon Sep 17 00:00:00 2001 From: mrdeveloper Date: Tue, 3 Nov 2020 13:59:32 +0100 Subject: [PATCH] Added cryptonote-social mining pool to XMRig --- src/widgets/xmrigwidget.cpp | 5 +++++ src/widgets/xmrigwidget.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/widgets/xmrigwidget.cpp b/src/widgets/xmrigwidget.cpp index e3be655..68dbe92 100644 --- a/src/widgets/xmrigwidget.cpp +++ b/src/widgets/xmrigwidget.cpp @@ -178,6 +178,11 @@ void XMRigWidget::onStartClicked() { else address = config()->get(Config::xmrigPool).toString(); + if(address.contains("cryptonote.social") && !username.contains(".")) { + // cryptonote social requires ., we'll just grab a few chars from primary addy + username = QString("%1.%2").arg(username, m_ctx->currentWallet->address(0, 0).mid(0, 6)); + } + m_ctx->XMRig->start(xmrigPath, m_threads, address, username, password, ui->relayTor->isChecked(), ui->check_tls->isChecked()); ui->btn_start->setEnabled(false); ui->btn_stop->setEnabled(true); diff --git a/src/widgets/xmrigwidget.h b/src/widgets/xmrigwidget.h index 87cdeca..231223f 100644 --- a/src/widgets/xmrigwidget.h +++ b/src/widgets/xmrigwidget.h @@ -57,7 +57,7 @@ private: QMenu *m_contextMenu; unsigned int m_threads; QStringList m_urls; - QStringList m_pools{"pool.xmr.pt:9000", "pool.supportxmr.com:9000", "mine.xmrpool.net:443", "xmrpool.eu:9999", "xmr-eu1.nanopool.org:14433", "pool.minexmr.com:6666", "us-west.minexmr.com:6666", "monerohash.com:9999"}; + QStringList m_pools{"pool.xmr.pt:9000", "pool.supportxmr.com:9000", "mine.xmrpool.net:443", "xmrpool.eu:9999", "xmr-eu1.nanopool.org:14433", "pool.minexmr.com:6666", "us-west.minexmr.com:6666", "monerohash.com:9999", "cryptonote.social:5555", "cryptonote.social:5556"}; }; #endif // REDDITWIDGET_H