mirror of
https://github.com/xmrig/xmrig.git
synced 2026-01-23 14:52:52 -05:00
Added signature functions
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
/* XMRig
|
||||
* Copyright 2012-2013 The Cryptonote developers
|
||||
* Copyright 2014-2021 The Monero Project
|
||||
* Copyright 2018-2021 SChernykh <https://github.com/SChernykh>
|
||||
* Copyright 2016-2021 XMRig <https://github.com/xmrig>, <support@xmrig.com>
|
||||
@@ -24,9 +25,6 @@
|
||||
#include "base/tools/cryptonote/BlockTemplate.h"
|
||||
|
||||
|
||||
#pragma optimize("", off)
|
||||
|
||||
|
||||
namespace xmrig {
|
||||
|
||||
|
||||
@@ -170,7 +168,7 @@ void CBlockTemplate::CalculateMerkleTreeHash(const uint8_t* hashes, size_t count
|
||||
size_t cnt = count;
|
||||
while (cnt & (cnt - 1)) cnt &= cnt - 1;
|
||||
|
||||
Buffer ints(HASH_SIZE);
|
||||
Buffer ints(cnt * HASH_SIZE);
|
||||
memcpy(ints.data(), hashes, (cnt * 2 - count) * HASH_SIZE);
|
||||
|
||||
for (i = cnt * 2 - count, j = cnt * 2 - count; j < cnt; i += 2, ++j) {
|
||||
|
||||
Reference in New Issue
Block a user