From 517b16911ace4885d90971a0bf8a365148814f1c Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 1 Dec 2016 11:08:18 -0300 Subject: [PATCH] test --- src/komodo.h | 2 +- src/rpcblockchain.cpp | 46 ++++++++++++++++++++++++++++--------------- 2 files changed, 31 insertions(+), 17 deletions(-) diff --git a/src/komodo.h b/src/komodo.h index c6c2148f5..7896b14cc 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 = (height < 100000) ? 1 : 0; + signedmask = (height < 91400) ? 1 : 0; numvins = block.vtx[i].vin.size(); for (j=0; jGetCoins(txid,coins) == 0 ) - return(-1); - if ( n < 0 || (unsigned int)n >= coins.vout.size() || coins.vout[n].IsNull() ) - return(-1); - ptr = (uint8_t *)coins.vout[n].scriptPubKey.data(); - m = coins.vout[n].scriptPubKey.size(); - for (i=0; iGetCoins(txid,coins) == 0 ) + { + fprintf(stderr,"cant get pcoinsTip->GetCoins\n"); + continue; + } + if ( n < 0 || (unsigned int)n >= coins.vout.size() || coins.vout[n].IsNull() ) + { + fprintf(stderr,"iter.%d n.%d vs voutsize.%d\n",iter,n,(int32_t)coins.vout.size()); + continue; + } + ptr = (uint8_t *)coins.vout[n].scriptPubKey.data(); + m = coins.vout[n].scriptPubKey.size(); + for (i=0; i