mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-06 15:42:38 -05:00
Compare commits
4 Commits
255565b533
...
6cc4819cec
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6cc4819cec | ||
|
|
a659397c41 | ||
|
|
20acfd0d79 | ||
|
|
da683d8c3e |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -4,3 +4,4 @@ scripts/deps
|
|||||||
/CMakeLists.txt.user
|
/CMakeLists.txt.user
|
||||||
/.idea
|
/.idea
|
||||||
/src/backend/opencl/cl/cn/cryptonight_gen.cl
|
/src/backend/opencl/cl/cn/cryptonight_gen.cl
|
||||||
|
.vscode
|
||||||
|
|||||||
@@ -241,8 +241,13 @@ bool xmrig::BlockTemplate::parse(bool hashes)
|
|||||||
ar(m_amount);
|
ar(m_amount);
|
||||||
ar(m_outputType);
|
ar(m_outputType);
|
||||||
|
|
||||||
// output type must be txout_to_key (2) or txout_to_tagged_key (3)
|
const bool is_fcmp_pp = (m_coin == Coin::MONERO) && (m_version.first >= 17);
|
||||||
if ((m_outputType != 2) && (m_outputType != 3)) {
|
|
||||||
|
// output type must be txout_to_key (2) or txout_to_tagged_key (3) for versions < 17, and txout_to_carrot_v1 (0) for version FCMP++
|
||||||
|
if (is_fcmp_pp && (m_outputType == 0)) {
|
||||||
|
// all good
|
||||||
|
}
|
||||||
|
else if ((m_outputType != 2) && (m_outputType != 3)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -250,6 +255,11 @@ bool xmrig::BlockTemplate::parse(bool hashes)
|
|||||||
|
|
||||||
ar(m_ephPublicKey, kKeySize);
|
ar(m_ephPublicKey, kKeySize);
|
||||||
|
|
||||||
|
if (is_fcmp_pp) {
|
||||||
|
ar(m_carrotViewTag);
|
||||||
|
ar(m_janusAnchor);
|
||||||
|
}
|
||||||
|
|
||||||
if (m_coin == Coin::ZEPHYR) {
|
if (m_coin == Coin::ZEPHYR) {
|
||||||
if (m_outputType != 2) {
|
if (m_outputType != 2) {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -148,6 +148,8 @@ private:
|
|||||||
Buffer m_hashes;
|
Buffer m_hashes;
|
||||||
Buffer m_minerTxMerkleTreeBranch;
|
Buffer m_minerTxMerkleTreeBranch;
|
||||||
uint8_t m_rootHash[kHashSize]{};
|
uint8_t m_rootHash[kHashSize]{};
|
||||||
|
uint8_t m_carrotViewTag[3]{};
|
||||||
|
uint8_t m_janusAnchor[16]{};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user