From 50c490cb23f7322c0bfe2c2ac37a127ec0d3b982 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 13 Mar 2017 11:06:19 +0200 Subject: [PATCH] Test --- src/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 4adbc26a5..bd15a6974 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3412,6 +3412,8 @@ bool ProcessNewBlock(int32_t height,CValidationState &state, CNode* pfrom, CBloc bool fRequested = MarkBlockAsReceived(pblock->GetHash()); fRequested |= fForceProcessing; if (!checked) { + if ( pfrom != 0 ) + Misbehaving(pfrom->GetId(), 20); return error("%s: CheckBlock FAILED", __func__); }