From e64437b70d1a6f97ad7be270fffd0e58429d0b48 Mon Sep 17 00:00:00 2001 From: Jethro Grassie Date: Tue, 10 Sep 2019 19:33:36 -0400 Subject: [PATCH] update based on rx latest patch --- src/xmr.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/xmr.cpp b/src/xmr.cpp index f54e4b0..7dba738 100644 --- a/src/xmr.cpp +++ b/src/xmr.cpp @@ -116,13 +116,10 @@ void get_rx_hash(const unsigned char *input, const size_t in_size, const uint64_t height) { #ifdef HAVE_RX - static unsigned max_concurrency = tools::get_max_concurrency(); - uint64_t seed_height; - if (rx_needhash(height, &seed_height, max_concurrency)) - { - rx_seedhash(seed_height, (const char*)seed_hash, max_concurrency); - } - rx_slow_hash((const char*)input, in_size, (char*)output, max_concurrency); + static unsigned miners = tools::get_max_concurrency(); + uint64_t seed_height = rx_seedheight(height); + rx_slow_hash(height, seed_height, (const char*)seed_hash, + (const char*)input, in_size, (char*)output, miners, 0); #endif }