Merge branch 'feature-randomx' into evo
This commit is contained in:
commit
3d17ba6af6
16 changed files with 162 additions and 6 deletions
|
@ -55,6 +55,7 @@ public:
|
|||
bool setTarget(const char *target);
|
||||
void setAlgorithm(const char *algo);
|
||||
void setDiff(uint64_t diff);
|
||||
bool setSeedHash(const char *hash);
|
||||
|
||||
inline bool isNicehash() const { return m_nicehash; }
|
||||
inline bool isValid() const { return m_size > 0 && m_diff > 0; }
|
||||
|
@ -64,6 +65,7 @@ public:
|
|||
inline const String &id() const { return m_id; }
|
||||
inline const uint32_t *nonce() const { return reinterpret_cast<const uint32_t*>(m_blob + 39); }
|
||||
inline const uint8_t *blob() const { return m_blob; }
|
||||
inline const uint8_t *seed_hash() const { return m_seedHash; }
|
||||
inline int poolId() const { return m_poolId; }
|
||||
inline int threadId() const { return m_threadId; }
|
||||
inline size_t size() const { return m_size; }
|
||||
|
@ -106,6 +108,7 @@ private:
|
|||
uint64_t m_diff;
|
||||
uint64_t m_height;
|
||||
uint64_t m_target;
|
||||
uint8_t m_seedHash[32];
|
||||
uint8_t m_blob[kMaxBlobSize];
|
||||
|
||||
# ifdef XMRIG_PROXY_PROJECT
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue