Description: Warn_about_recommended_submit_stale_usage_for_lyra2z
 Diplay a warning message if Lyra2Z is being mined without --suubmit-stale.
 .
 https://github.com/tpruvot/ccminer/pull/32
 .
 ccminer-tpruvot (2.2.3-4) unstable; urgency=medium
 .
   * Remove my previous patch: after discussion with upstream same
     behavior can be enforced by using --submit-stale command line arg.
   * Warn about this broken configuration when starting with Lyra2Z algo.
Author: Adam Cecile <acecile@le-vert.net>

---
Forwarded: https://github.com/tpruvot/ccminer/pull/32
Last-Update: 2017-12-14

Index: ccminer-mtp-1.1.5/ccminer.cpp
===================================================================
--- ccminer-mtp-1.1.5.orig/ccminer.cpp
+++ ccminer-mtp-1.1.5/ccminer.cpp
@@ -5023,6 +5023,10 @@ int main(int argc, char *argv[])
 		allow_mininginfo = false;
 	}
 
+	if (opt_algo == ALGO_LYRA2Z && !opt_submit_stale) {
+		if (!opt_quiet) applog(LOG_WARNING, "You should consider using --submit-stale when mining Lyra2Z");
+	}
+
 	flags = !opt_benchmark && strncmp(rpc_url, "https:", 6)
 	      ? (CURL_GLOBAL_ALL & ~CURL_GLOBAL_SSL)
 	      : CURL_GLOBAL_ALL;
