mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-11 01:22:45 -05:00
Add DoubleWorker class.
This commit is contained in:
@@ -50,8 +50,9 @@ public:
|
||||
inline void setPoolId(int poolId) { m_poolId = poolId; }
|
||||
|
||||
static bool fromHex(const char* in, unsigned int len, unsigned char* out);
|
||||
static void toHex(const unsigned char* in, unsigned int len, char* out);
|
||||
static inline uint32_t *nonce(uint8_t *blob) { return reinterpret_cast<uint32_t*>(blob + 39); }
|
||||
static inline uint64_t toDiff(uint64_t target) { return 0xFFFFFFFFFFFFFFFFULL / target; }
|
||||
static void toHex(const unsigned char* in, unsigned int len, char* out);
|
||||
|
||||
private:
|
||||
int m_poolId;
|
||||
|
||||
Reference in New Issue
Block a user