Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

Increased pool timeout to accomodate for latent connections and SIGSEGV exits properly #17

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jdowning100
Copy link
Contributor

No description provided.

unsigned poolFailoverTimeout = 0; // Return to primary pool after this number of minutes
bool reportHashrate = false; // Whether or not to report hashrate to pool
unsigned hashRateInterval = 60; // Interval in seconds among hashrate submissions
std::string hashRateId =
h256::random().hex(HexPrefix::Add); // Unique identifier for HashRate submission
unsigned connectionMaxRetries = 10; // Max number of connection retries
unsigned connectionMaxRetries = 30; // Max number of connection retries
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The accounting for connectionMaxRetries is disabled so this is already infinite.

cerr << "SIGSEGV encountered ...\n";
g_running = false;
g_shouldstop.notify_all();
break;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why don't we have this code, without the break, right before the exit(128) line. There might be a reason they chose that specific exit code to display which works with other scripts.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants