From 85f1853e3553203c3483af406efbf4cbd117cd26 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 24 Apr 2018 19:28:42 +0300 Subject: [PATCH] Revert --- src/main.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index c4c3e29db..7b746c3d2 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -4012,11 +4012,7 @@ bool AcceptBlockHeader(int32_t *futureblockp,const CBlockHeader& block, CValidat if (ppindex) *ppindex = pindex; if ( pindex != 0 && pindex->nStatus & BLOCK_FAILED_MASK ) - { - if (!CheckBlockHeader(futureblockp,*ppindex!=0?(*ppindex)->nHeight:0,*ppindex, block, state,0)) - return state.Invalid(error("%s: block is marked invalid", __func__), 0, "duplicate"); - else pindex->nStatus &= ~BLOCK_FAILED_MASK; - } + return state.Invalid(error("%s: block is marked invalid", __func__), 0, "duplicate"); /*if ( pindex != 0 && hash == komodo_requestedhash ) { fprintf(stderr,"AddToBlockIndex A komodo_requestedhash %s\n",komodo_requestedhash.ToString().c_str());