Skip to content
This repository has been archived by the owner on Oct 20, 2023. It is now read-only.

Commit

Permalink
ZCash working with "Overwinter" and upcoming "Sapling" release
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver Weichhold committed Sep 14, 2018
1 parent 4e7d8c5 commit 1801e34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MiningCore/Blockchain/ZCash/ZCashJob.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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[]
Expand Down Expand Up @@ -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();
}
Expand Down

0 comments on commit 1801e34

Please sign in to comment.