From 261ee5628b08149728b023bdb9ad032211e07bd0 Mon Sep 17 00:00:00 2001 From: cryptochangements34 Date: Tue, 8 May 2018 19:09:14 -0400 Subject: [PATCH] don't limit miner threads in wallet --- src/simplewallet/simplewallet.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp index 639b394f3..14bc69308 100644 --- a/src/simplewallet/simplewallet.cpp +++ b/src/simplewallet/simplewallet.cpp @@ -3667,7 +3667,6 @@ bool simple_wallet::start_mining(const std::vector& args) req.miner_address = m_wallet->get_account().get_public_address_str(m_wallet->nettype()); bool ok = true; - size_t max_mining_threads_count = (std::max)(tools::get_max_concurrency(), static_cast(2)); size_t arg_size = args.size(); if(arg_size >= 3) { @@ -3683,7 +3682,7 @@ bool simple_wallet::start_mining(const std::vector& args) { uint16_t num = 1; ok = string_tools::get_xtype_from_string(num, args[0]); - ok = ok && (1 <= num && num <= max_mining_threads_count); + ok = ok && 1 <= num; req.threads_count = num; } else @@ -3693,8 +3692,7 @@ bool simple_wallet::start_mining(const std::vector& args) if (!ok) { - fail_msg_writer() << tr("invalid arguments. Please use start_mining [] [do_bg_mining] [ignore_battery], " - " should be from 1 to ") << max_mining_threads_count; + fail_msg_writer() << tr("invalid arguments. Please use start_mining [] [do_bg_mining] [ignore_battery]"); return true; }