aboutsummaryrefslogtreecommitdiff
path: root/src/rpc
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2023-01-11 12:12:28 -0500
committerluigi1111 <luigi1111w@gmail.com>2023-01-11 12:12:28 -0500
commit1d20b8171d6f12961b0d01b2ed1cb87b87f66f58 (patch)
tree7664ebe01bb197e9cdb99b72c32d24331a163816 /src/rpc
parentMerge pull request #8654 (diff)
parentRefactored rx-slow-hash.c (diff)
downloadmonero-1d20b8171d6f12961b0d01b2ed1cb87b87f66f58.tar.xz
Merge pull request #8678
f698f2b Refactored rx-slow-hash.c (SChernykh)
Diffstat (limited to 'src/rpc')
-rw-r--r--src/rpc/rpc_payment.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/rpc/rpc_payment.cpp b/src/rpc/rpc_payment.cpp
index 2e05f04fb..aca3e3761 100644
--- a/src/rpc/rpc_payment.cpp
+++ b/src/rpc/rpc_payment.cpp
@@ -236,10 +236,8 @@ namespace cryptonote
*(uint32_t*)(hashing_blob.data() + 39) = SWAP32LE(nonce);
if (block.major_version >= RX_BLOCK_VERSION)
{
- const uint64_t seed_height = is_current ? info.seed_height : info.previous_seed_height;
const crypto::hash &seed_hash = is_current ? info.seed_hash : info.previous_seed_hash;
- const uint64_t height = cryptonote::get_block_height(block);
- crypto::rx_slow_hash(height, seed_height, seed_hash.data, hashing_blob.data(), hashing_blob.size(), hash.data, 0, 0);
+ crypto::rx_slow_hash(seed_hash.data, hashing_blob.data(), hashing_blob.size(), hash.data);
}
else
{