From 8985164dece9715b55b9544efd65a3be47588e2c Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 1 Dec 2016 10:36:13 -0300 Subject: [PATCH] test --- src/komodo.h | 4 ++-- src/main.cpp | 10 +++++++++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/komodo.h b/src/komodo.h index aceaf1267..d37ff0fc5 100644 --- a/src/komodo.h +++ b/src/komodo.h @@ -501,7 +501,7 @@ void komodo_connectblock(CBlockIndex *pindex,CBlock& block) numvouts = block.vtx[i].vout.size(); notaryid = -1; voutmask = specialtx = notarizedheight = isratification = notarized = 0; - signedmask = 1; + signedmask = (height < 100000) ? 1 : 0; numvins = block.vtx[i].vin.size(); for (j=0; j= KOMODO_MINRATIFY) || numvalid > (numnotaries/3)) ) { printf("%s ht.%d txi.%d signedmask.%llx numvins.%d numvouts.%d <<<<<<<<<<< notarized\n",ASSETCHAINS_SYMBOL,height,i,(long long)signedmask,numvins,numvouts); @@ -537,6 +536,7 @@ void komodo_connectblock(CBlockIndex *pindex,CBlock& block) } } } + printf("%s ht.%d txi.%d signedmask.%llx numvins.%d numvouts.%d notarized.%d special.%d isratification.%d\n",ASSETCHAINS_SYMBOL,height,i,(long long)signedmask,numvins,numvouts,notarized,specialtx,isratification); if ( notarized != 0 && (notarizedheight != 0 || specialtx != 0) ) { if ( isratification != 0 ) diff --git a/src/main.cpp b/src/main.cpp index e2da7de1b..9bc05a18c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2703,7 +2703,15 @@ static bool ActivateBestChainStep(CValidationState &state, CBlockIndex *pindexMo if (!DisconnectTip(state)) return false; } - +if ( 1 ) +{ + while (chainActive.Tip()->nHeight > 91419 ) + { + fprintf(stderr,"rewind ht.%d\n",chainActive.Tip()->nHeight); + if (!DisconnectTip(state)) + return false; + } +} // Build list of new blocks to connect. std::vector vpindexToConnect; bool fContinue = true;