1
0
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:
XMRig
2017-06-13 19:58:31 +03:00
parent 8c2951db2d
commit 981e043ada
13 changed files with 195 additions and 17 deletions

View File

@@ -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;