From cb2f8fd453986f9cbafdc70c7cfb88f418076e45 Mon Sep 17 00:00:00 2001 From: SChernykh Date: Sat, 24 Jun 2023 15:15:37 +0200 Subject: [PATCH] Zephyr solo mining: fix for blocks with transactions --- src/base/tools/cryptonote/BlockTemplate.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/base/tools/cryptonote/BlockTemplate.cpp b/src/base/tools/cryptonote/BlockTemplate.cpp index 6f73ec700..1926136b1 100644 --- a/src/base/tools/cryptonote/BlockTemplate.cpp +++ b/src/base/tools/cryptonote/BlockTemplate.cpp @@ -315,6 +315,13 @@ bool xmrig::BlockTemplate::parse(bool hashes) } } + if (m_coin == Coin::ZEPHYR) { + uint64_t pricing_record_height, amount_burnt, amount_minted; + ar(pricing_record_height); + ar(amount_burnt); + ar(amount_minted); + } + setOffset(MINER_TX_PREFIX_END_OFFSET, ar.index()); // Prefix end