From 1801e3421ea1350f69c876ae599c11d79e8aaa18 Mon Sep 17 00:00:00 2001 From: Oliver Weichhold Date: Fri, 14 Sep 2018 18:43:35 +0200 Subject: [PATCH] ZCash working with "Overwinter" and upcoming "Sapling" release --- src/MiningCore/Blockchain/ZCash/ZCashJob.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MiningCore/Blockchain/ZCash/ZCashJob.cs b/src/MiningCore/Blockchain/ZCash/ZCashJob.cs index 9e6bbf792..f543e5970 100644 --- a/src/MiningCore/Blockchain/ZCash/ZCashJob.cs +++ b/src/MiningCore/Blockchain/ZCash/ZCashJob.cs @@ -241,7 +241,7 @@ public override void Init(ZCashBlockTemplate blockTemplate, string jobId, // misc var hashReserved = isSaplingActive && !string.IsNullOrEmpty(blockTemplate.FinalSaplingRootHash) ? - blockTemplate.FinalSaplingRootHash : + blockTemplate.FinalSaplingRootHash.HexToByteArray().ReverseArray().ToHexString() : sha256Empty.ToHexString(); jobParams = new object[] @@ -306,7 +306,7 @@ protected virtual byte[] SerializeHeader(uint nTime, string nonce) }; if (isSaplingActive && !string.IsNullOrEmpty(BlockTemplate.FinalSaplingRootHash)) - blockHeader.HashReserved = BlockTemplate.FinalSaplingRootHash.HexToByteArray(); + blockHeader.HashReserved = BlockTemplate.FinalSaplingRootHash.HexToByteArray().ReverseArray(); return blockHeader.ToBytes(); }