From e35059fc32c4584038f51156837d9c9605a511e0 Mon Sep 17 00:00:00 2001 From: fireice-uk Date: Fri, 8 Dec 2017 21:35:43 +0000 Subject: [PATCH] Make sure we don't run without a username --- xmrstak/misc/executor.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xmrstak/misc/executor.cpp b/xmrstak/misc/executor.cpp index e2ce715..b4dea4f 100644 --- a/xmrstak/misc/executor.cpp +++ b/xmrstak/misc/executor.cpp @@ -531,6 +531,12 @@ void executor::ex_main() if(!xmrstak::params::inst().poolURL.empty() && !already_have_cli_pool) { auto& params = xmrstak::params::inst(); + if(params.poolUsername.empty()) + { + printer::inst()->print_msg(L1, "ERROR: You didn't specify the username / wallet address for %s", xmrstak::params::inst().poolURL.c_str()); + win_exit(); + } + pools.emplace_front(i+1, params.poolURL.c_str(), params.poolUsername.c_str(), params.poolPasswd.c_str(), 9.9, false, params.poolUseTls, "", params.nicehashMode); }