From 46accb1077c0e97d5952c81c15c2adbded4c0c56 Mon Sep 17 00:00:00 2001 From: dsc Date: Thu, 5 May 2022 20:41:12 +0200 Subject: [PATCH] mining: dont exit when binding fails - we dont need to bind to any ports when we just want to mine --- src/utils/xmrig.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/utils/xmrig.cpp b/src/utils/xmrig.cpp index b26fe89..77e9d44 100644 --- a/src/utils/xmrig.cpp +++ b/src/utils/xmrig.cpp @@ -61,6 +61,13 @@ bool XmRig::start(const QString &path, int threads) { auto privateSpendKey = m_ctx->currentWallet->getSecretSpendKey(); QStringList arguments; + + // dont exit when binding fails - we dont need + // to bind to any ports when we just want to mine + arguments << "--no-zmq"; + arguments << "--rpc-ignore-ipv4"; + arguments << "--p2p-ignore-ipv4"; + arguments << "--mining-threads" << QString::number(threads); arguments << "--start-mining" << m_ctx->currentWallet->address(0, 0); arguments << "--spendkey" << privateSpendKey;