From 273e80ab681017992b87175a1f9df2b6abf8b70e Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 18 Oct 2016 15:23:57 -0300 Subject: [PATCH] test --- src/komodo.h | 33 +++++++++++---------------------- 1 file changed, 11 insertions(+), 22 deletions(-) diff --git a/src/komodo.h b/src/komodo.h index 153779c92..a09eece71 100644 --- a/src/komodo.h +++ b/src/komodo.h @@ -90,38 +90,27 @@ int32_t komodo_blockindexcheck(CBlockIndex *pindex,uint32_t *nBitsp) void komodo_connectblock(CBlockIndex *pindex,CBlock& block) { - char *scriptstr; int32_t i,j,height,txn_count,len,flag = 0; + char *scriptstr; int32_t i,numvins,numvouts,height,txn_count; // update voting results and official (height, notaries[]) if ( pindex != 0 ) { height = pindex->nHeight; txn_count = block.vtx.size(); - for (j=0; j<13; j++) + numvouts = block.vtx.vout.size(); + numvins = block.vtx.vin.size(); + for (i=0; i 0 ) - flag++; + scriptstr = (char *)block.vtx[i].vout[j].scriptPubKey.ToString().c_str(); if ( strncmp(scriptstr,CRYPTO777_PUBSECPSTR,66) == 0 ) printf(">>>>>>>> "); - printf("ht.%d txi.%d (%s)\n",height,i,scriptstr); + else if ( j == 0 ) + { + + } + printf("ht.%d txi.%d vout.%d (%s)\n",height,i,j,scriptstr); } - if ( flag != 0 ) - break; - sleep(1); } } else printf("komodo_connectblock: unexpected null pindex\n"); }