Skip to content

Commit

Permalink
change default --farm-recheck to 5000
Browse files Browse the repository at this point in the history
  • Loading branch information
deepgully committed Feb 19, 2019
1 parent 17a82ef commit a6e13f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion ethminer/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,8 @@ class MinerCLI

app.add_option("-v,--verbosity", g_logOptions, "", true)->check(CLI::Range(LOG_NEXT - 1));

app.add_option("--farm-recheck", m_PoolSettings.getWorkPollInterval, "", true)->check(CLI::Range(1, 99999));
app.add_option("--farm-recheck", m_PoolSettings.getWorkPollInterval, "", true)
->check(CLI::Range(1000, 99999));

app.add_option("--farm-retries", m_PoolSettings.connectionMaxRetries, "", true)->check(CLI::Range(0, 99999));

Expand Down
2 changes: 1 addition & 1 deletion libpoolprotocols/PoolManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namespace eth
struct PoolSettings
{
std::vector<std::shared_ptr<URI>> connections; // List of connection definitions
unsigned getWorkPollInterval = 10000; // Interval (ms) between getwork requests
unsigned getWorkPollInterval = 5000; // Interval (ms) between getwork requests
unsigned noWorkTimeout = 14400; // If no new jobs in this number of seconds drop connection
unsigned poWEndTimeout = 180; // If no new jobs in this number of seconds, set PoW end
unsigned noResponseTimeout = 2; // If no response in this number of seconds drop connection
Expand Down

0 comments on commit a6e13f5

Please sign in to comment.