From da3dcb034b5836efd8af39f4cfec9f2250c1c5ee Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 24 Mar 2017 22:52:56 +0200 Subject: [PATCH] Test --- src/miner.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/miner.cpp b/src/miner.cpp index c0db1132a..3ce396485 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -429,8 +429,8 @@ CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn) pblock->nSolution.clear(); pblocktemplate->vTxSigOps[0] = GetLegacySigOpCount(pblock->vtx[0]); - CValidationState state; - if ( !TestBlockValidity(state, *pblock, pindexPrev, false, false)) + CValidationState tmpstate; + if ( !TestBlockValidity(tmpstate, *pblock, pindexPrev, false, false)) { static uint32_t counter; if ( counter++ < 100 )