1
0
mirror of https://github.com/xmrig/xmrig.git synced 2025-12-20 12:30:27 -05:00

Fixed invalid shares.

This commit is contained in:
XMRig
2019-09-12 10:00:12 +07:00
parent 82595ee256
commit db79911c4b
2 changed files with 2 additions and 14 deletions

View File

@@ -55,19 +55,15 @@ public:
inline bool isJIT() const { return m_flags & 8; }
inline const Buffer &seed() const { return m_seed; }
inline randomx_cache *get() const { return m_cache; }
inline uint64_t initCount() const { return m_initCount; }
bool init(const Buffer &seed);
static inline constexpr size_t maxSize() { return RANDOMX_CACHE_MAX_SIZE; }
private:
bool isReady(const Buffer &seed) const;
Buffer m_seed;
int m_flags = 0;
randomx_cache *m_cache = nullptr;
uint64_t m_initCount = 0;
};