This commit is contained in:
jl777
2016-10-18 13:32:48 -03:00
parent 5e029e4fb3
commit 6e78b9294d

View File

@@ -44,13 +44,13 @@ int32_t komodo_blockindexcheck(CBlockIndex *pindex,uint32_t *nBitsp)
void komodo_connectblock(CBlockIndex *pindex,CBlock& block)
{
char *coinbasestr; int32_t i,height,txn_count = block.vtx.size();
char *scriptstr; int32_t i,height,txn_count = block.vtx.size();
// update voting results and official (height, notaries[])
height = pindex->nHeight;
for (i=0; i<txn_count; i++)
{
coinbasestr = (char *)block.vtx[0].vout[0].scriptPubKey.ToString().c_str();
printf("ht.%d (%s)\n",height,coinbasestr);
scriptstr = (char *)block.vtx[i].vout[0].scriptPubKey.ToString().c_str();
printf("ht.%d txi.%d (%s)\n",height,i,scriptstr);
}
}