diff --git a/src/base/net/stratum/DaemonClient.cpp b/src/base/net/stratum/DaemonClient.cpp index 96c23b22..edae8beb 100644 --- a/src/base/net/stratum/DaemonClient.cpp +++ b/src/base/net/stratum/DaemonClient.cpp @@ -105,10 +105,11 @@ int64_t xmrig::DaemonClient::submit(const JobResult &result) return -1; } + char *data = (m_apiVersion == API_DERO) ? m_blockhashingblob.data() : m_blocktemplate.data(); + # ifdef XMRIG_PROXY_PROJECT - memcpy(m_blocktemplate.data() + 78, result.nonce, 8); + memcpy(data + 78, result.nonce, 8); # else - char* data = (m_apiVersion == API_DERO) ? m_blockhashingblob.data() : m_blocktemplate.data(); Buffer::toHex(reinterpret_cast(&result.nonce), 4, data + 78); # endif diff --git a/src/crypto/common/Coin.cpp b/src/crypto/common/Coin.cpp index 1588c4f0..f8f38943 100644 --- a/src/crypto/common/Coin.cpp +++ b/src/crypto/common/Coin.cpp @@ -6,8 +6,8 @@ * Copyright 2016 Jay D Dee * Copyright 2017-2018 XMR-Stak , * Copyright 2018 Lee Clagett - * Copyright 2018-2019 SChernykh - * Copyright 2016-2019 XMRig , + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/crypto/common/Coin.h b/src/crypto/common/Coin.h index ed9c7ce5..d4b2aaa3 100644 --- a/src/crypto/common/Coin.h +++ b/src/crypto/common/Coin.h @@ -6,8 +6,8 @@ * Copyright 2016 Jay D Dee * Copyright 2017-2018 XMR-Stak , * Copyright 2018 Lee Clagett - * Copyright 2018-2019 SChernykh - * Copyright 2016-2019 XMRig , + * Copyright 2018-2020 SChernykh + * Copyright 2016-2020 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by