From 934a28f5290ebfe5895d2da1aecaf3f1896a43f0 Mon Sep 17 00:00:00 2001 From: Michel van Kessel Date: Sun, 20 Dec 2020 14:40:52 +0100 Subject: [PATCH] banned forked nodes --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index cd785724c..b61f18bbc 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3653,7 +3653,7 @@ bool ContextualCheckBlockHeader(const CBlockHeader& block, CValidationState& sta int nHeight = pindexPrev->nHeight+1; if (chainActive.Height() - nHeight >= consensusParams.nMaxReorganizationDepth) - return state.DoS(1, error("%s: forked chain older than max reorganization depth (height %d)", __func__, nHeight)); + return state.DoS(100, error("%s: forked chain older than max reorganization depth (height %d)", __func__, nHeight)); // Preliminary check difficulty in pos-only stage if (chainActive.Height() > consensusParams.nLastPOWBlock && nHeight > consensusParams.nLastPOWBlock && block.nBits != GetNextTargetRequired(pindexPrev, &block, consensusParams, true))