diff options
author | luigi1111 <luigi1111w@gmail.com> | 2023-01-11 12:12:28 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2023-01-11 12:12:28 -0500 |
commit | 1d20b8171d6f12961b0d01b2ed1cb87b87f66f58 (patch) | |
tree | 7664ebe01bb197e9cdb99b72c32d24331a163816 /src/rpc | |
parent | Merge pull request #8654 (diff) | |
parent | Refactored rx-slow-hash.c (diff) | |
download | monero-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.cpp | 4 |
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 { |