From 10a7d55a03392eb235f416417fcee504ca4d895a Mon Sep 17 00:00:00 2001 From: Simon Date: Wed, 6 Jun 2018 23:22:16 -0700 Subject: [PATCH] Remove now redundant Rust call to librustzcash_xor. --- src/pow.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/pow.cpp b/src/pow.cpp index ae7467961..18873d4ee 100644 --- a/src/pow.cpp +++ b/src/pow.cpp @@ -16,8 +16,6 @@ #include "sodium.h" -#include "librustzcash.h" - unsigned int GetNextWorkRequired(const CBlockIndex* pindexLast, const CBlockHeader *pblock, const Consensus::Params& params) { unsigned int nProofOfWorkLimit = UintToArith256(params.powLimit).GetCompact(); @@ -98,12 +96,6 @@ bool CheckEquihashSolution(const CBlockHeader *pblock, const CChainParams& param // H(I||V||... crypto_generichash_blake2b_update(&state, (unsigned char*)&ss[0], ss.size()); - // Ensure that our Rust interactions are working in production builds. This is - // temporary and should be removed. - { - assert(librustzcash_xor(0x0f0f0f0f0f0f0f0f, 0x1111111111111111) == 0x1e1e1e1e1e1e1e1e); - } - bool isValid; EhIsValidSolution(n, k, state, pblock->nSolution, isValid); if (!isValid)