From 872cf91b4453df3385b7678f6f231fa699cde49b Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 16 Apr 2018 01:35:35 +0300 Subject: [PATCH] Test accepting failed check block --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 12c7c3666..77a87ad00 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3912,13 +3912,13 @@ bool ProcessNewBlock(int32_t height,CValidationState &state, CNode* pfrom, CBloc LOCK(cs_main); bool fRequested = MarkBlockAsReceived(pblock->GetHash()); fRequested |= fForceProcessing; - if (!checked) + if (!checked && 0) // bypass test { if ( pfrom != 0 ) { Misbehaving(pfrom->GetId(), 1); } - return false; // prevent flooding debug.log error("%s: CheckBlock FAILED", __func__); + return error("%s: CheckBlock FAILED", __func__); } // Store to disk