From bd8997bfa7045930af6f7dcaeabf8a748e27a6d1 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 16 Apr 2018 02:11:53 +0300 Subject: [PATCH] Test --- src/main.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 32fc4dfe9..9be386e25 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3826,7 +3826,10 @@ bool AcceptBlock(CBlock& block, CValidationState& state, CBlockIndex** ppindex, CBlockIndex *&pindex = *ppindex; if (!AcceptBlockHeader(block, state, &pindex)) + { + fprintf(stderr,"AcceptBlockHeader rejected\n"); return false; + } if ( pindex == 0 ) { fprintf(stderr,"unexpected AcceptBlock error null pindex\n"); @@ -3855,7 +3858,7 @@ bool AcceptBlock(CBlock& block, CValidationState& state, CBlockIndex** ppindex, // See method docstring for why this is always disabled auto verifier = libzcash::ProofVerifier::Disabled(); - if ((!CheckBlock(pindex->nHeight,pindex,block, state, verifier)) || !ContextualCheckBlock(block, state, pindex->pprev)) { + if ((!CheckBlock(pindex->nHeight,pindex,block, state, verifier,0)) || !ContextualCheckBlock(block, state, pindex->pprev)) { if (state.IsInvalid() && !state.CorruptionPossible()) { pindex->nStatus |= BLOCK_FAILED_VALID; setDirtyBlockIndex.insert(pindex);