-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Conversation
@@ -13,7 +13,7 @@ using namespace eth; | |||
class EthGetworkClient : public PoolClient, Worker | |||
{ | |||
public: | |||
EthGetworkClient(unsigned const & farmRecheckPeriod); | |||
EthGetworkClient(unsigned const & farmRecheckPeriod, bool const & submitHashrate); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is wrong. Pass both arguments by value.
// Store the solution in temp var. Will be handled in workLoop | ||
m_solutionToSubmit = solution; | ||
// Immediately send found solution without wait for loop | ||
if (m_connected || m_justConnected) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the m_justConnected
flag for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really do not know. I only replicated what i believe is the "connected" condition imposed in workloop. I did not write this class.
// Store the solution in temp var. Will be handled in workLoop | ||
m_solutionToSubmit = solution; | ||
// Immediately send found solution without wait for loop | ||
if (m_connected || m_justConnected) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the m_justConnected
flag for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really do not know. I only replicated what i believe is the "connected" condition imposed in workloop. I did not write this class.
Also add CHANGELOG entry. |
Addresses #1213 - Solution submit is immediate upon arrival and is no influenced by --farm-recheck value - Submission of hashrate is conditional - Renamed m_report_stratum_hashrate to m_report_hashrate as it's valid for both modes Now even sligtly higher --farm-recheck values may be applied to mitigate overhead.
Addresses #1213
Now even sligtly higher --farm-recheck values may be applied to mitigate overhead.