Implemented SinglePoolStrategy.

This commit is contained in:
XMRig 2017-06-29 01:48:23 +03:00
parent bd8776b7ee
commit 25faeabd61
10 changed files with 98 additions and 22 deletions

View file

@ -43,7 +43,9 @@ public:
DonateStrategy(const char *agent, IStrategyListener *listener);
public:
bool isActive() const override;
void connect() override;
void submit(const JobResult &result) override;
protected:
void onClose(Client *client, int failures) override;
@ -53,6 +55,7 @@ protected:
private:
static void onTimer(uv_timer_t *handle);
bool m_active;
Client *m_client;
IStrategyListener *m_listener;
uv_timer_t m_timer;