From 68d0354d9de9c556cbce49ff9270462c37eba6b9 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 10 Apr 2018 17:58:38 +0300 Subject: [PATCH] Test --- src/miner.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/miner.cpp b/src/miner.cpp index 79cd2588e..21e0a8fdd 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -929,6 +929,15 @@ void static BitcoinMiner() while ( GetAdjustedTime() < pblock->nTime ) sleep(1); } + else + { + CValidationState state; + if ( !TestBlockValidity(state, *pblock, pindexPrev, false, false)) + { + fprintf(stderr,"Invalid block mined, try again\n"); + return(false); + } + } } KOMODO_CHOSEN_ONE = 1; // Found a solution