Fix possibility duplicate share for short donation intervals.
This commit is contained in:
parent
c16388ade3
commit
32e7041def
5 changed files with 119 additions and 27 deletions
|
@ -38,17 +38,20 @@ class DoubleWorker : public Worker
|
|||
{
|
||||
public:
|
||||
DoubleWorker(Handle *handle);
|
||||
~DoubleWorker();
|
||||
|
||||
void start() override;
|
||||
|
||||
private:
|
||||
bool resume(const Job &job);
|
||||
void consumeJob();
|
||||
void save(const Job &job);
|
||||
|
||||
class State;
|
||||
|
||||
Job m_job;
|
||||
uint32_t m_nonce1;
|
||||
uint32_t m_nonce2;
|
||||
uint8_t m_hash[64];
|
||||
uint8_t m_blob[84 * 2];
|
||||
State *m_state;
|
||||
State *m_pausedState;
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue