mirror of
https://git.wownero.com/wownero/wownero-puddle.git
synced 2024-08-15 01:03:20 +00:00
update based on rx latest patch
This commit is contained in:
parent
df8bfe2a78
commit
e64437b70d
1 changed files with 4 additions and 7 deletions
11
src/xmr.cpp
11
src/xmr.cpp
|
@ -116,13 +116,10 @@ void get_rx_hash(const unsigned char *input, const size_t in_size,
|
||||||
const uint64_t height)
|
const uint64_t height)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_RX
|
#ifdef HAVE_RX
|
||||||
static unsigned max_concurrency = tools::get_max_concurrency();
|
static unsigned miners = tools::get_max_concurrency();
|
||||||
uint64_t seed_height;
|
uint64_t seed_height = rx_seedheight(height);
|
||||||
if (rx_needhash(height, &seed_height, max_concurrency))
|
rx_slow_hash(height, seed_height, (const char*)seed_hash,
|
||||||
{
|
(const char*)input, in_size, (char*)output, miners, 0);
|
||||||
rx_seedhash(seed_height, (const char*)seed_hash, max_concurrency);
|
|
||||||
}
|
|
||||||
rx_slow_hash((const char*)input, in_size, (char*)output, max_concurrency);
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue