mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-09 00:33:33 -05:00
Add classes SinglePoolStrategy, DonateStrategy, IStrategy, IStrategyListener.
This commit is contained in:
@@ -31,13 +31,15 @@
|
||||
|
||||
#include "interfaces/IClientListener.h"
|
||||
#include "interfaces/IJobResultListener.h"
|
||||
#include "interfaces/IStrategyListener.h"
|
||||
|
||||
|
||||
class IStrategy;
|
||||
class Options;
|
||||
class Url;
|
||||
|
||||
|
||||
class Network : public IClientListener, public IJobResultListener
|
||||
class Network : public IClientListener, public IJobResultListener, public IStrategyListener
|
||||
{
|
||||
public:
|
||||
Network(const Options *options);
|
||||
@@ -59,15 +61,11 @@ private:
|
||||
void startDonate();
|
||||
void stopDonate();
|
||||
|
||||
static void onTimer(uv_timer_t *handle);
|
||||
|
||||
bool m_donate;
|
||||
bool m_donateActive;
|
||||
char *m_agent;
|
||||
const Options *m_options;
|
||||
int m_pool;
|
||||
std::vector<Client*> m_pools;
|
||||
uint64_t m_diff;
|
||||
uv_timer_t m_timer;
|
||||
IStrategy *m_donate;
|
||||
IStrategy *m_strategy;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user