From fb3cd913efa83ac4c45ea2e735f9f871f233920e Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 19 Apr 2018 15:13:50 +0300 Subject: [PATCH] Test --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index df911fa7d..b7c77bb51 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3774,6 +3774,7 @@ bool CheckBlock(int32_t height,CBlockIndex *pindex,const CBlock& block, CValidat uint8_t pubkey33[33]; uint256 hash; // These are checks that are independent of context. hash = block.GetHash(); + int32_t z; for (z=31; z>=0; z--) fprintf(stderr,"%02x",((uint8_t *)&hash)[z]); fprintf(stderr," CheckBlock ht.%d\n",height); @@ -3787,7 +3788,6 @@ bool CheckBlock(int32_t height,CBlockIndex *pindex,const CBlock& block, CValidat } if ( fCheckPOW ) { - int32_t z; //if ( !CheckEquihashSolution(&block, Params()) ) // return state.DoS(100, error("CheckBlock: Equihash solution invalid"),REJECT_INVALID, "invalid-solution"); hash = block.GetHash(); @@ -4156,7 +4156,7 @@ bool TestBlockValidity(CValidationState &state, const CBlock& block, CBlockIndex indexDummy.nHeight = pindexPrev->nHeight + 1; // JoinSplit proofs are verified in ConnectBlock auto verifier = libzcash::ProofVerifier::Disabled(); - uint256 h; + int32_t z; uint256 h; h = block.GetHash(); for (z=31; z>=16; z--) fprintf(stderr,"%02x",((uint8_t *)&h)[z]);