Test accepting failed check block

This commit is contained in:
jl777
2018-04-16 01:35:35 +03:00
parent 04a1f0bbc3
commit 872cf91b44

View File

@@ -3912,13 +3912,13 @@ bool ProcessNewBlock(int32_t height,CValidationState &state, CNode* pfrom, CBloc
LOCK(cs_main); LOCK(cs_main);
bool fRequested = MarkBlockAsReceived(pblock->GetHash()); bool fRequested = MarkBlockAsReceived(pblock->GetHash());
fRequested |= fForceProcessing; fRequested |= fForceProcessing;
if (!checked) if (!checked && 0) // bypass test
{ {
if ( pfrom != 0 ) if ( pfrom != 0 )
{ {
Misbehaving(pfrom->GetId(), 1); Misbehaving(pfrom->GetId(), 1);
} }
return false; // prevent flooding debug.log error("%s: CheckBlock FAILED", __func__); return error("%s: CheckBlock FAILED", __func__);
} }
// Store to disk // Store to disk