diff options
author | fireice-uk <fireice-uk@users.noreply.github.com> | 2017-12-08 21:35:43 +0000 |
---|---|---|
committer | fireice-uk <fireice-uk@users.noreply.github.com> | 2017-12-08 21:35:43 +0000 |
commit | e35059fc32c4584038f51156837d9c9605a511e0 (patch) | |
tree | b3f012ba86b15c3871fafcc57f4ea1e82896423a /xmrstak/misc | |
parent | 78761c5454fe90d66d91e77427b30e57939da7a7 (diff) | |
download | xmr-stak-e35059fc32c4584038f51156837d9c9605a511e0.zip xmr-stak-e35059fc32c4584038f51156837d9c9605a511e0.tar.gz |
Make sure we don't run without a username
Diffstat (limited to 'xmrstak/misc')
-rw-r--r-- | xmrstak/misc/executor.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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); } |