diff options
author | fireice-uk <fireice2@o2.pl> | 2017-01-13 14:55:50 +0000 |
---|---|---|
committer | fireice-uk <fireice2@o2.pl> | 2017-01-13 14:55:50 +0000 |
commit | c21b3d08b08fd3870456e1b4aa0995bb24c371c7 (patch) | |
tree | 91cdfc47e7b2181e608c265f450c499093ad62f3 /executor.cpp | |
parent | 53036196c0ab3951cb53697685179f8241794919 (diff) | |
download | xmr-stak-c21b3d08b08fd3870456e1b4aa0995bb24c371c7.zip xmr-stak-c21b3d08b08fd3870456e1b4aa0995bb24c371c7.tar.gz |
Fix for lack of proper timeout in cryptonote-universal-pool
Diffstat (limited to 'executor.cpp')
-rw-r--r-- | executor.cpp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/executor.cpp b/executor.cpp index 16a5a90..131f721 100644 --- a/executor.cpp +++ b/executor.cpp @@ -26,6 +26,10 @@ #include "console.h" #include "donate-level.h" +#ifdef _WIN32 +#define strncasecmp _strnicmp +#endif // _WIN32 + executor* executor::oInst = NULL; executor::executor() @@ -261,7 +265,16 @@ void executor::on_miner_result(size_t pool_id, job_result& oResult) if(!pool->have_sock_error()) { printer::inst()->print_msg(L3, "Result rejected by the pool."); - log_result_error(pool->get_call_error()); + + std::string error = pool->get_call_error(); + + if(strncasecmp(error.c_str(), "Unauthenticated", 15) == 0) + { + printer::inst()->print_msg(L2, "Your miner was unable to find a share in time. Either the pool difficulty is too high, or the pool timeout is too low."); + pool->disconnect(); + } + + log_result_error(std::move(error)); } else log_result_error("[NETWORK ERROR]"); |